This is a Discord bot written in Golang that scrapes Reddit for random memes.
- /meme command: Use the
/meme
command in your Discord server to get a random meme from Reddit. - Golang: The bot is written in Golang, a powerful and efficient programming language.
Before running the bot, make sure you have the following:
- Golang: Install Golang on your machine. You can download it from the official Golang website.
- Discord Bot Token: Obtain a Discord bot token by creating a new bot on the Discord Developer Portal.
-
Clone the repository:
git clone https://github.com/your-username/discord-bot-go.git
-
Navigate to the project directory:
cd discord-bot-go
-
Install the required dependencies:
go get
-
Set your Discord bot token:
- Rename the
config-example.json
file toconfig.json
. - Open the
config.json
file and replace the placeholder token with your actual Discord bot token. - Save the
config.json
file.
- Rename the
-
Run the bot:
go run main.go
Once the bot is running and connected to your Discord server, you can use the following command:
- /meme: Use this command to get a random meme from Reddit.
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.