A serverless slash command discord bot for various guardian tales related command.
This bot is designed to be runned on the Deno Deploy. Thus it is easy to self host this bot.
help [command]?
: Show help for a command.hero [name]
: Show description about a hero.alias
: Show alias that can be used for [name] parameter inhero
command.about
: about this bot
Because the nature of slash command in discord. you cannot setup localhost as usual. that's mean you are need either to do port forwarding or do tunneling.
To do tunneling you can use something like ngrok or cloudflare zero trust.
after that. do tunnel forwarding to port 8000 and save the url.
Install Deno here.
- Clone this repository
- Copy .env.example into .env
- Fill the necessary values
- open command line and then run
deno task start
- run command
deno task slash
- if you are developing, you can say "no" in the prompt asking for "is global"
- add all slash command
- Note that. if the environment variable for "ENV" Is not set into "PRODUCTION", every single command will be prefixed with "dev_"
This project is primary targeted to Deno Deploy. that's mean it is very easy to deploy there. it also have generous free tier so you can try it out
- Go to https://deno.com/deploy and then sign-in with github accont
- Select new project and then add your repositories
- Select create and deploy.
- after that. go to the dasboard and then setting
- Fill environtment variable based file .env.examples