Setup - The-Fragment/GizmoDND GitHub Wiki

Welcome to the GizmoDND wiki!

To begin with Gizmo, head to https://discord.com/developers/applications and create an application, set it up as a bot, and copy the token.

Once you have done this, your pre-req's are done.

You will need a Config.py file to run the bot if you intend to use it along side public Git commits.

On lines 13-18 you will find the following code bot = discord.Client() bot = commands.Bot(command_prefix=prefix) bot.remove_command('help') intents = discord.Intents.default() intents.members = True Additionally: on Ln306: bot.run(token, bot=True, reconnect=True) both occur in the "Main"

Ln14 references prefixes, whereas Ln306 references the Token

In the past, there was difficulty with exposed bot tokens. Therefore;

  1. Create a bot config.py file
  2. Place the following code in that file:
token="current_token"
prefix="whatever_current_prefix"
  1. Additionally other keys such as client ID's for Reddit, Imgur, or any other APIs can be placed in here and later called in code.

BE CERTAIN NOT TO COMMIT/PUSH CONFIG.PY WHEN MAKING A COMMIT!

all members of the team should have the same code for the config.py