A command line tool to seamlessly build discord bots in python
Project description
dizbot
A command line tool to seamlessly build discord bots in python
How to install
Run pip install dizbot
Note: Requires python version 3 or more
How to use
- Go into the directory you want to have the bot code in
- Run command
dizbot runand walk through the prompts to add commands and event handlers and create the bot - Add your bot's client token in the
client_token.txtfile if you didn't already add it through the CLI - Run
python3 bot.pyand test out your bot!
dizbot saves your bot's configurations into dizbot_config.json file and reads from it if you run dizbot run again
dizbot also appends dizbot_config.json and client_token.txt to your .gitignore to make sure that you do not accidently push sensitive info to github or other websites
After dizbot generates the python code, you can add more code to it!
The python file generated by the bot after going through the CLI shown in the demo gif:
from discord.ext import commands
bot = commands.Bot(command_prefix='>')
@bot.command()
async def test(ctx, *args):
await ctx.send('hi test!')
@bot.command()
async def ping(ctx, *args):
await ctx.send('pong!')
@bot.event
async def on_member_join(member):
channel = await member.create_dm()
await channel.send('Hello new member!')
f = open('client_token.txt', 'r')
print('Running the bot...')
bot.run(f.read())
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dizbot-1.0.3.tar.gz.
File metadata
- Download URL: dizbot-1.0.3.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
307081b6474336eba217d6b8ce7141111d3177669e911c4c683e8e85f3be12cf
|
|
| MD5 |
7465927e534b95be498b9f30aa6d2ef4
|
|
| BLAKE2b-256 |
c96c44d84ab3bf6253e1475d31ac15b845bbf249c15a995d398febb4d25ccb16
|
File details
Details for the file dizbot-1.0.3-py3-none-any.whl.
File metadata
- Download URL: dizbot-1.0.3-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3278765132521500f171bec654378f871f5ea8f3ef9547cfd0100af8185f894
|
|
| MD5 |
3308e28e4ae46d1942ae38308975ab91
|
|
| BLAKE2b-256 |
27da108983617cbba1b82de95a4b1ebc31fdfb7e146eae7ac92f745ac4cbc3d8
|