Command-line interface for running an instance of CommanderBot.
Project description
CommanderBot
Command-line interface for running an instance of CommanderBot.
Running your bot
You can run your own bot without writing any code.
You will need the following:
- Your own Discord Application with a bot token.
- A configuration file for the bot.
- A Python 3.8+ environment with the
commanderbot
package installed.- It is recommended to use a virtual environment for this.
- Run
pip install commanderbot
to install the bot core package.
- (Optional) The
commanderbot-ext
package; if you are using any of the provided extensions.- Run
pip install commanderbot-ext
to install the bot extensions package.
- Run
The first thing you should do is check the CLI help menu:
python -m commanderbot --help
There are three ways to provide your bot token:
- (Recommended) As the
BOT_TOKEN
environment variable:BOT_TOKEN=put_your_bot_token_here
- As a CLI option:
--token put_your_bot_token_here
- Manually, when prompted during start-up
Here's an example that provides the bot token as an argument:
python -m commanderbot bot.json --token put_your_bot_token_here
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
commanderbot-0.2.0.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for commanderbot-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6179d3ff46bf2ccb04e7738bb895a9180922564224d6d6b7db97166394a427f2 |
|
MD5 | a1efeb12d1e30dadb9c44b8abac18313 |
|
BLAKE2b-256 | e4fe9475250f50a79a88a67d3c21292ff2244d4d0fc62c9df47c8c8acf98cbad |