X-BOT
A Slack BOT who does anything.
Commands
@bot is your BOT's name.
@bot c|contribute
Post the URL to contribute.
@bot h|httpcat
Post a picture of a cat with HTTP Cats.
@bot j|joke
Post a joke with the Joke API.
@bot l|list
Post a list of commands.
@bot o|ojichat
Post an ojichat with the ojichat.
Valid arguments are the following.
@bot ojichat
@bot ojichat @skmatz
@bot ojichat @skmatz 3
@bot p|pick
Pick randomly.
Valid arguments are the following.
@bot ping
Check to see if the BOT server is working properly.
If it is working, the BOT posts the message pong to the same channel.
@bot t|timer
Measure the time.
Valid arguments are the following.
@bot timer 3: Measure 3 seconds.
@bot timer 3 sec: Measure 3 seconds.
@bot timer 3 min: Measure 3 minutes.
@bot timer 3 sec Hello, world!: Measure 3 seconds with the memo: "Hello, world!".
Develop
Add a BOT with app_mentions:read, chat:write and files:write permissions to your Slack workspace and set .env.
docker-compose up --build
Deploy
I recommend using Cloud Run provided by GCP.
You just select the forked-repository, set two environment variables, and set an endpoint for the Slack event API.