modulepackage
0.0.0-20231223232012-88bd5e5f7856
Repository: https://github.com/sleepysonya/discordgobot.git
Documentation: pkg.go.dev
# README
Discord GO Bot for my server
Why so weird?
I am learning and testing some packages and approach in go, thus I am trying to implement as many technologies as possible to see their advantages and drawbacks
How can I use this bot?
Well, if you are a stranger that wants to play with it or use for your own server
- add a
Taskfile.yml
. it has to look like:
version: '3'
env: &env
BOT_TOKEN: <Your Discord Bot Token>
GUILDID: <Your Guild Id>
OPEN_AI: <Your Open Ai Token>
RMCM: <true or false if you want to clean commands after bot shuttdown>
tasks:
build:
desc: Build the app
cmds:
- GOFLAGS=-mod=mod go build -o bin/gopher-bot-discord main.go
run:
desc: Run the app
cmds:
- GOFLAGS=-mod=mod go run main.go -t $BOT_TOKEN -g $GUILDID -r $RMCM
bot:
desc: Execute the bot
cmds:
- ./bin/gopher-bot-discord -t $BOT_TOKEN -g $GUILDID -r $RMCM -o $OPEN_AI
- Add .env file with a following var
ORG_ID="<Open Ai Org Id>"
- Open console with your bot and run
task run
it shall build a bot
# Constants
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author