You are browsing as a guest. Sign up (or log in) to start making projects!

Minigames Slackbot

  • 3 Devlogs
  • 2 Total hours

Slackbot for simple minigames

Open comments for this post

33m 54s logged

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;

  1. the model wasn’t working and was too slow.
  2. The code changes wouldn’t apply when bot is running -> needed a restart

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

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;

  1. the model wasn’t working and was too slow.
  2. The code changes wouldn’t apply when bot is running -> needed a restart

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

Replying to @blazfoxx

0
3
Open comments for this post

31m 15s logged

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

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

Replying to @blazfoxx

0
2
Open comments for this post

44m 53s logged

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

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

Replying to @blazfoxx

0
3

Followers

Loading…