Skip to content

k4rt0fl3r/discord-slash-commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

interactions.py and Slash Commands

Description

This is a dirty example on how one can use the interactions.py library to handle Slash commands in a Discord server.

Package Requirements

  • interactions.py - see References
  • dotenv
  • json

Discord Bot Requirements

  • Make sure that your bot has the application.commands scope

Usage

  • After making sure you have the above requirements in place, create a .env file with the format of the .env.example and fill in with your values
  • Run python mock.py, which will register the commands in commands.json in your specified server and then it will spawn your bot.
  • If you just want to spawn the bot, run python bot.py

References

About

Repository with an example of how you can use interactions.py library to handle Discord Slash commands

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published