Tutorials: Getting Your API Keys & Using the Discord Bot

๐Ÿ‡ซ๐Ÿ‡ท Franรงais

๐Ÿ”‘ Get Your OpenAI API Key (GPT)

Step 1: Create an OpenAI Account

Step 2: Access the API Dashboard

Step 3: Manage Your Subscription

Step 4: Generate Your API Key

Step 5: Use the Key in the Discord Bot

๐Ÿ”‘ Get Your Google CSE API Key and CSE ID

Step 1: Create a Project on Google Cloud

Step 2: Enable the Custom Search JSON API

Step 3: Create Credentials (API Key)

Step 4: Create a Programmable Search Engine (CSE)

Step 5: Retrieve the CSE ID

Step 6: Use the API Key and CSE ID in the Discord Bot

๐Ÿ”‘ Get Your YouTube API Key

Step 1: Access Google Cloud Console

Step 2: Create or Select a Project

Step 3: Enable the YouTube Data API v3

Step 4: Create an API Key

Step 5: Use the API Key in the Discord Bot

๐Ÿ”‘ Get Your Twitch API Credentials

Step 1: Go to the Twitch Developer Console

Step 2: Register a New Application

Step 3: Retrieve Client ID and Generate Client Secret

Step 4: Use the Credentials in the Discord Bot

๐Ÿ›ก๏ธ Managing Discord Bot Administrators

Who Can Manage Administrators?

Add a Secondary Administrator

Remove a Secondary Administrator

View the List of Secondary Administrators


Send a Private Message to All Members (Admin Only)

โš ๏ธ Risky usage:
โ€” Do not abuse this command: it may be flagged as spam by Discord, and some users may have DMs from bots disabled.
โ€” This command should be reserved for truly important announcements to your community.
โ€” Discord may limit or block the bot if it sends too many private messages in a row.


๐ŸŽฎ Create a Looking For Group (LFG)

What does the !lfg command do?

Create a basic LFG

Explanation of parameters:

Example:

What happens next:

โš ๏ธ Reminder:

๐Ÿ“… Create and Manage an Event

What does the !event command do?

Create an Event

Parameter Details:

Smart Time Display in Discord:

What happens next:

How Events Work:

โš ๏ธ Reminder:

๐Ÿ“‹ How Rosters Work

What is a roster?

Who can create a roster?

How does it work?


๐Ÿ’ธ Transfer NexusCoins to Another User


๐ŸŽฒ Dice Rolling (D&D, Roleplay Games, etc.)


๐ŸŽฏ Random Draw Between Players (!draw)


๐Ÿ” Who Can Do What? (Users, Admins, Super Admins)

Regular User

Administrator (added via !addadmin)

Super Admin (added via !superadmin)

Special Case: User Becomes Admin

In summary:
Any user who participates in something (LFG, poll, roster...) is automatically registered in the database and can be rewarded!


๐Ÿ”ง NexusIA Bot Permissions Configuration

To ensure the NexusIA bot works properly on your Discord server, it is essential to grant it certain permissions. Without them, the bot may not respond correctly to commands, manage events, or handle polls.

โœ… Recommended Permissions when Adding the Bot:

โœ… Where to Set These Permissions?

  1. Go to your server settings โž” Roles
  2. Select the role assigned to NexusIA, or create one dedicated to it
  3. Make sure this role is placed high enough in the role hierarchy to be effective
  4. Enable all the permissions listed above

โœ… Channel-Specific Permissions:

  1. Go to Channel Settings โž” Permissions
  2. Add the NexusIA bot or its role to the list of allowed members
  3. Grant it at least the following permissions:
    • View Channels
    • Read Messages
    • Send Messages
    • Add Reactions
    • Read Message History
    • Manage Messages

โš ๏ธ Important:

If the bot doesnโ€™t respond in a channel, check:

โ“ Note:
If the bot doesnโ€™t have permission to send messages in a channel, no error message will be shown.
To users, it may simply seem like the bot isnโ€™t working.
Always double-check permissions if the bot remains silent!

๐Ÿ’ก Tip: Create a dedicated admin commands channel for actions like !lfg and !event.