Skip to content

This is a discord bot created from scratch in python using only WebSocket and REST API, as a research project on the discord API.

License

Notifications You must be signed in to change notification settings

maxxie114/discord-bot-from-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord-bot-from-scratch

This is a discord bot created from scratch in python using only WebSocket and REST API, as a research project on the discord API.

YAML format

token: token-goes-here
prefix: prefix-goes-here

Requirements

  • websocket-client
  • json
  • requests
  • yaml

Files and Directories

  • src: The source directory
  • main.py: The main python file
  • config.yml: Config file
  • requirements.txt: List of all dependencies
  • response.json: An example json response from discord

Library and API used

Getting Started

    1. Create a config.yml file, write the token and the prefix into it
    1. Set the path of the config.yml file in the main.py script
    1. Start the bot with python3 main.py

Code Style

LICENSE

Contribution

  • Contribution is allowed with a pull request, please make sure you follow the code style

About

This is a discord bot created from scratch in python using only WebSocket and REST API, as a research project on the discord API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages