Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PROD Bot Creation #46

Closed
3 tasks
joyguptaa opened this issue Feb 1, 2025 · 1 comment
Closed
3 tasks

PROD Bot Creation #46

joyguptaa opened this issue Feb 1, 2025 · 1 comment
Assignees

Comments

@joyguptaa
Copy link
Contributor

joyguptaa commented Feb 1, 2025

Important

Since the deployment is done, the only thing needed is BOT credentials. Here are the steps inspired from previous issue ticket #27

Please follow these steps to create BOT (and credentials)

Discord Bot Setup

ENV Vars Prakash needs

  1. DISCORD_PUBLIC_KEY
  2. GUILD_ID
  3. BOT_TOKEN

NOTE
These variables are essential for the bot to function correctly. Please provide them to @prakashchoudhary07

Vars you will get from Prakash

  1. Bot Interaction URL

NOTE
The URL is essential for the bot to function correctly. Please get them from @prakashchoudhary07

Getting Started

To set up a discord you first need to create an application (basically a bot), here are the steps to follow:

  1. Visit Discord Application

  2. Click on the "New Application" Button
    Screenshot 2024-11-08 at 1 52 53 AM

  3. Fill in your Application Name
    Screenshot 2024-11-08 at 1 52 53 AM

  4. Now here you will see your newly created application, click on it, and this should open "General Information"

  5. If you scroll down, you will se PUBLIC KEY, copy it and place it in environment as DISCORD_PUBLIC_KEY

  6. Now to create BOT_TOKEN, click on BOT > Reset Token
    Screenshot 2024-11-08 at 2 07 40 AM

  7. Once you have the token, place it against BOT_TOKEN in the environment

  8. Now, we will be creating an invite URL and for that, you need to click on OAuth2 > bot
    Screenshot 2024-11-13 at 11 40 21 PM

  9. Now as soon as you click on the bot, a section to choose bot permission from, will show up
    Screenshot 2024-11-14 at 10 53 20 AM

  10. Check the following options

    1. Send Messages
    2. Change Nickname
    3. Manage Nickname
  11. Once you select all the bot permissions, scroll a bit down and you will see "Generated URL"
    Screenshot 2024-11-14 at 10 58 30 AM

  12. Copy and paste that URL into the browser, and a prompt will come up that will ask you to select your own "Discord Server"
    Screenshot 2024-11-14 at 11 00 45 AM

  13. Once you add the Bot to your server, copy the "Server Id", by right-clicking on the server avatar. Now place this id in environment against GUILD_ID

Steps to Configure the Interactions Endpoint

  1. Paste the URL of Discord Service running on Prod (e.g., https://<subdomain>.<domain>.com or https://<host>:<port>).

  2. Open the General Information section of your bot in the Discord Developer Portal by clicking on bot's avatar or on name.

  3. Paste the copied URL into the Interactions Endpoint URL field and hit on save button.

    This URL is where Discord will send interaction events for your bot, such as commands or button clicks.
    Screenshot 2024-11-14 at 10 58 30 AM

  4. That’s it! 🚀 Your bot is ready to handle interactions. Try running a /hello command to test it out!

@ankushdharkar ankushdharkar self-assigned this Feb 16, 2025
@ankushdharkar
Copy link
Contributor

All the steps here have been completed successfully. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants