This bot's primary purpose is to notify users on Discord about upcoming events.
-
Copy
.example.config.json
toconfig.json
-
Create an Application Discord Developers
-
Add the Bot's token to
$.discordBotToken
inconfig.json
-
Create a Discord server, and invite the bot to the server
Todo this, replace the
CLIENT_ID
in the following URL. You can find the Client ID in the Applications -> Your Application -> General Information.URL:
https://discord.com/api/oauth2/authorize?client_id=CLIENT_ID&permissions=8590085120&scope=bot
-
Run the bot with
go run main.go
- Discord's API
- Meetup's API
- Discordgo (Golang Discord library used)
- Update
./prod.config.json
cd ci
./release <VERSION>
- Copy
./out/opensgf-discord-bot_*.deb
to the server sudo dpkg -i /path/to/opensgf-discord-bot_*.deb
sudo vi /etc/opensgf-discord-bot/env
- Write
OPENSGF_DISCORD_BOT_TOKEN=<TOKEN>
(insecure, but only root has access) sudo systemctl restart opensgf-discord-bot.service
- Update
./prod.config.json
cd ci
./release <VERSION>
- Copy
./out/opensgf-discord-bot_*.deb
to the server sudo dpkg -i /path/to/opensgf-discord-bot_*.deb