Skip to content

Discord Bot Setup and Configuration

L4GSP1KE edited this page Mar 13, 2023 · 5 revisions

DISCORD BOT IS OUTDATED AND CURRENTLY NOT SUPPORTED.


If you wish to use discord bot mode, you must do a few things first:

  • Create/Obtain a Discord Server where you have the permissions to:

    • Invite the bot

    • Create a private text channel for you (and the bot)

      I made a new server for this purpose

  • Invite your bot to above Discord Server:

    • Visit the discord developer portal
    • Create a New Application and add it to your Personal Team
    • Go to the Bot page for your application (sidebar)
    • Add Bot
    • Here you can set the Bot's Username and Icon
      • **SAVE YOUR TOKEN FOR LATER
      • No other options are necessary, however I recommend disabling the Public Bot switch
    • SAVE
    • Go to the OAuth2 page for your application (sidebar)
    • Copy the CLIENT ID
    • Replace your CLIENT ID with the one in the URL below:
    • Visit the modified URL in your browser and add your Bot to your Discord Server
  • Properly edit the DISCORD section of data/config.json

    • Your discord_bot_token can be found in your discord developer portal if you didn't save earlier
    • The discord_bot_description can be whatever you like
    • The command_prefix is what you type before a command. e.g. ("." for .upload, or "!" for !upload)
    • To obtain your discord_channel_id and admin_id you must have Developer Mode turned on in your Discord client
      • To turn on Developer Mode, open your User Settings > Advanced > Developer Mode
      • To get the discord_channel_id, right click on the text channel and Copy ID. This ensures the bot can only execute commands from this text channel
      • To get the admin_id, right click your name from the user bar and Copy ID. This ensures that the bot only listens to your reactions.
    • search_dir is a path to your downloads directory. This is used as the place to search when using !search.
    • discord_emojis:
      • By default I have unicode emojis since they work on any server.
      • If you wish to use custom emojis, first add them to your server and then find their id by sending them in chat prefixed by a \ (\:emoji:). If done correctly you will see something that looks like <:emoji:123456789>. Copy and paste that into your configuration.