Getting Started

To set up your Discord Go Bot, follow these steps:

1. Environment Setup

  1. Clone the repository to your local machine:

    git clone https://github.com/ResyncedDesign/DiscordGoBot.git
    cd DiscordGoBot
    
  2. Install dependencies:

    go mod tidy
    
  3. 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.

  4. 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.

  1. Open the URL in your browser.
  2. 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.