Skip to main content

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:

  1. Your own Discord Application with a bot token.
  2. A configuration file for the bot.
  3. 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.
  4. (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.

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:

  1. (Recommended) As the BOT_TOKEN environment variable: BOT_TOKEN=put_your_bot_token_here
  2. As a CLI option: --token put_your_bot_token_here
  3. 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


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)

Uploaded Source

Built Distribution

commanderbot-0.2.0-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page