thegamecracks / theticketbot

A ticket bot built on Discord's native threads.
MIT License
2 stars 0 forks source link

Suggest config.toml template when file is not present #9

Closed thegamecracks closed 4 months ago

thegamecracks commented 4 months ago

After installing theticketbot, users must manually create a config.toml file following the instructions on PyPI / this GitHub repository and add their token to it. If they don't do this, the bot exits with:

No bot token has been supplied by the config file.
Please get a Bot Token from https://discord.com/developers/applications and add it to your configuration.

If the user didn't finish reading this step, it would not be obvious what "config file" the application refers to, nor the format that the token should be written in.

Instead, the bot should show something like:

Before you can run theticketbot, you must create a config.toml file containing:

    [bot]
    token = ""

And add your bot's token from the https://discord.com/developers/applications page.

The config.toml text should update according to the path specified in --config-file, not including the full directory.