Another discord bot! · Report Bug · Request Feature · Invite Me
Table of Contents
Another discord bot build for fun. Originally intended as a Dice Rolling bot but I keep adding fun features because I am enjoying the project. The current capabilities of the bot are:
- Dice rolling
- Board Game Geek Hot List & User Information Lookup
- Cowsay
- Fortune
Some features I am considering for the future include:
- Get the latest images from the Curiosity or Perseverance Rovers
- View upcoming space launches
To get up and running with DBot:
The only pre-requisites to get up and running are Python 3 with pipenv
. While pipenv
is not required it makes installation of packages for the project trivial.
- Python 3 This is highly system dependent. On Windows I recommend using Windows Subsystem for Linux or Chocolatey and on OS X I can highly recommend Homebrew.
pipenv
pip install --user pipenv
Additionally, the project is built with containers in mind so you can install Docker on your system but the project can be run without being in a container as well.
- Check out this tutorial on realpython.com for recommendations on setting up a Discord Developer account for a bot and getting an API token.
- Clone the repo
git clone https://github.com/SpinStabilized/dbot.git
- The development environment uses
pipenv
. To install a test environmentpipenv install
- Create a
.env
filePopulate the file with the follow informationtouch .env
DISCORD_TOKEN=your_token_here DISCORD_BOT_PREFIX=your_prefix_char_here DISCORD_BOT_DEVELOPERS=semicolon_separated_developer_id_list
- To execute the bot in the
pipenv
environment you can execute it directlyor jump into a shell in thepipenv run src/dbot.py
pipenv
environment and run it with Pythonpipenv shell python src/dbot.py
- The Docker compose files can build a container environment that will immediately connect and start running
docker-compose -f "docker-compose.yml" up -d --build
- If you are using Docker and add any modules with
pipenv install
, make sure you freeze the environment before you run the Docker compose. If you are in a *nix shell (Linux, WSL, OS X) there is a convenience script included
./freeze.sh
- I develop in VS Code and mostly on a Windows machine. Some of the extensions I find very useful (and should be largly cross-compatible) are
TBD
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Brian McLaughlin - bjmclauglin@gmail.com
Project Link: https://github.com/SpinStabilized/dbot
- discordpy
- Best-README-Template
- Img Shields
- Choose an Open Source License
- Numerous bot examples.