Minigames Slackbot
- 3 Devlogs
- 2 Total hours
Slackbot for simple minigames
Slackbot for simple minigames
Tried adding an AI chat feature to my slack bot but couldn’t get it to work…
Messages would send, but no output… and nothing in terminal.
Ok nevermind. Realized that;
Fixed by changing model and having output be printed in terminal to catch any errors
… This means you can ask the slackbot any question
This might be it for this slackbot… might move over to some kind of new project
Added 2 new commands to my slack project!
I added a rock paper scissors command: /blaze-rps
The user chooses an option from a list: rock, paper or scissors. Then, the bot chooses a random one. There is a hardcoded list in the code for saying what beats what.
… yep
Also added “flip a coin” which basically just picks a random option between heads and tails and tells the user the answer
New to slack bot
This is my first time making a slackbot app….
Decided t go with python as it is the easiest and I know it pretty well.
I started off by getting an understanding on how to even run a bot. I was more used to discord bots, and this was quite different, with us having to add commands on the webpage and such.
Once I got the hang of it, I created a bot.py and a tictactoe.py file. The tictactoe file had the base of how my tictactoe game worked and such while the bot.py was where the command system lived. It just had like, responses to commands, what happens if X happened… yeah
The one and only command I have for now is:
/3t
-> play the game with /3t start
-> place a piece with /3t move <1-9>
-> quit with /3t quit
I will continue this project under “slackbot” time