Getting Started
To set up your Discord Go Bot, follow these steps:
1. Environment Setup
-
Clone the repository to your local machine:
git clone https://github.com/ResyncedDesign/DiscordGoBot.git cd DiscordGoBot
-
Install dependencies:
go mod tidy
-
Create a
.env
file in the root directory and add your Bot Token, Client ID and Guild ID:TOKEN=YOUR_DISCORD_BOT_TOKEN CLIENTID=YOUR_DISCORD_CLIENT_ID GUILDID=YOUR_DISCORD_GUILD_ID
You can get the Bot Token and Client ID from the Discord Developer Portal.
-
Run the bot:
go run main.go
2. Invite the Bot to Your Server
To invite your bot to a Discord server, use the following OAuth2 URL:
https://discord.com/oauth2/authorize?client_id=YOUR_CLIENT_ID&permissions=8&scope=bot%20applications.commands
Replace YOUR_CLIENT_ID
with the actual Client ID of your bot.
- Open the URL in your browser.
- Select your server and click Authorize.
The bot should now be added to your server!
4. Running the Bot
To start the bot you must first build/compile it using:
go build -o bot main.go
Then you can start the bot using:
./bot
The bot should now be online and ready to use!
For more advanced configurations and troubleshooting, refer to the documentation.