https://github.com/goscord/bot
An example of bot using Goscord.
https://github.com/goscord/bot
bot discord discord-bot golang
Last synced: about 1 year ago
JSON representation
An example of bot using Goscord.
- Host: GitHub
- URL: https://github.com/goscord/bot
- Owner: Goscord
- Created: 2020-12-15T15:30:35.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-05-04T14:32:37.000Z (about 3 years ago)
- Last Synced: 2025-05-07T17:15:27.802Z (about 1 year ago)
- Topics: bot, discord, discord-bot, golang
- Language: Go
- Homepage:
- Size: 298 KB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example bot
This is the example bot from Goscord. You can test it on [our Discord](https://goscord.dev/discord).
## Environment variable
You must create a `.env` file with the bot token variable (`BOT_TOKEN`).
## Start it
### Without Docker
You must have version 1.18 of GoLang installed on your machine. [See how to install GoLang](https://go.dev/dl/).
Then, run this command on your terminal:
```sh
go run main.go
```
### With Docker
This bot can also be launched via Docker so you don't need to install Golang on your machine.
To start the bot with docker, here are the commands you need to do:
```sh
# Build the docker image:
docker build -t goscord-example .
# Then, run the docker image:
docker run --name goscord-bot -it --rm goscord-example
```