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

YaKnow Slack Bot

  • 3 Devlogs
  • 5 Total hours

This bot isn't slacking off, it replies to messages 24/7!

Ship #1

I made my first ever Slackbot called Yaknow! It was meant to be a cat themed bot, but I added a roll feature which I’m really proud of. When you roll, it checks to see what you rolled and sends a special message if you roll a lucky number. It also checks if you’ve beaten any of your stats (rolled 777, lowest, highest) and saves it to a .json file.

It took me a while, especially trying to figure out how to save and read rolls, which was challenging.

It now runs 24/7 on Hackclub nest, so go try it out! :D

To view all features and learn more, please visit the readme by click “See source code”.

Try project → See source code →
Open comments for this post

2h 53m 43s logged

I made a .json storage file. Now every time you break your records, it gets saved! You can now your stats using /yaknow-roll-leaderboard. This took FOREVER including research. :)

Note: the bots currently not on 24/7 yet, I’ll probably do that next.

2
0
25
Open comments for this post

1h 58m 27s logged

It’s taken me a while to do these simple tasks but basically I’ve added a /yaknow-cat command that displays cat images from an API. This took me a while because I hadn’t realised that you needed to make it an attachment for slack to display it.

I also make a /yaknow-roll command that’s an rng that rolls a number between 1 and 1 million. It’s going to be a game where you need to try and get the highest or lowest number. A leaderboard will then display these high/small roles.

I spent a while figuring out how to save stuff to a json file (I watched a tutorial for some of it), however it currently only saves the most recent roll, slack id, and a timestamp. I’m going to fix all that next update hopefully.

Bugs I’ve noticed: There’s currently a bug I just noticed as I’m writing this, if you get lucky it sends 2 messages (lucky and unlucky). This should be a quick fix for the next update.

Note: My nest has been accepted, I’m going to try set that up after I’m done writing this blog :)

0
0
7
Open comments for this post

30m 32s logged

Started my slackbot called ‘YaKnow’. Spent a lot of time reading the guide, setting up github and slack, etc. Basic commands work now.

I just applied for Nest, so it’s currently only online when I run it for testing.

0
0
6

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…