Slackbot
- 4 Devlogs
- 5 Total hours
This bot isn't slacking off, it replies to messages 24/7!
This bot isn't slacking off, it replies to messages 24/7!
Version 1.0
Well this was a journey from learning how to set this bot up or how to set him on the Nest so it runs 24/7 and learning so much more in the process.
The bot has 4 of the commands from the tutorial and 3 mine :
[5:59 PM]:robot_face: Available Commands:
/zizik-ping - Check bot latency
/zizik-catfact - Get a cat fact
/zizik-joke - Get a random joke
/zizik-translatetomylanguage - Translate text to my language
/zizik-translator - First specify your language and then type the text after a space.
/zizik-isssatellites - Get the current ISS location
This is the final devlog for this bot or maybe I will return to this and add new things but who knows!
Now I will tell you what I been through becasue I ran into many problems through this journey:
I didn’t know where to communicate with the bot so i found it online and connected after that I had some problems with the tokens because yeah iInamed them tokens.env not .env so I figured it out with AI because Github had memory of me uploading this code that has things that shouldn’t be shared but overall I found the issue and resolved it. My second problem was that I couldn’t paste anything when I was in ssh to my nest so I badly copied the tokens-YEAH- and I figured it out after like half an hour and the second I used AI even though it was absolutely useless. Third problem was that I don’t really know how to code in javascript even though I did something(minecraft related) it was not the same at all only what iknew were const and console.log() and some other little things so I used a little bit of AI and other projects for brainstorming on how to ´make user specify the language in the translator and rewrited the code better for me so I understand what I typed and made thats why in the translation you have so much comments because I had to tell myself what it does so I don’t forget it anytime in the near future!
That are overall my problems because I really enjoyed this somehow and it was great my bot does a lot and means a lot to me. I stated everywhere my AI usage and in readme.md there was some too but not much and I tried to rewrite most of it so it sound like me more and so it speaks to my experience from it more!
Now if everything will be allright i will move onto other project maybe the hadkpad or something on my own!
So today was very productive
Firstly I made a transalator that translates to Czech
That was very great easy and fast. Only thing that like I didnt know how was what api to use for translator and well I used Google translate
Same goes for the second command that translates everything into anything and I found it really hard to make the logic on how to see the first command that specifies the language and well I found it in other project and well I modified it a little and typed what everything does so I can use something or undesrstand something like this better in the future
The third just tells you where ISS satellites are which is kind of insane that I thought about this and yeah I got inspired by others that put mars pictures and etc so I put satelite commands in there!
Overall this was the most productive day but the most stressfull to and I will ship it after I make some solid README. I knew absolutely nothing about this from the start and well my ssh and knowledge in this was really bad I was always mainly making modpacks or etc. It was absolutely different and overall I would say even thought it took me soo long than some other people it was still great experince and i learned so much from this which is absolutely insane!
Slackbot update!
So it begings with me badly copying the token from the original code! For some reason ctrl+v does not work when in ssh… I still dont know why? It is how it is so I had to type all of the tokens and commands with my hand and got bored of it so I imported the .env file because why the hell not and it copied badly :)
after that I got myself into big troubles with that I made the folders and everything in different spots so i had to learn how to move file and etc.
the time I got into this… I somehow misread the thing and yeah my commands were not unique so it colided with others and after some time I figured it out! I still dont know how?
Now the next time I will do this I will make something new and maybe more fun for me than learning something from linux, some dumb mistakes because I didnt understand some things or thought that it is easy and yeah I used lots of AI for troubleshooting but im not ashamed to say so because troubleshooting is so boring and i dont want to sit here for hours more trying to figure it out!
Overall I enjoyed todays run more than yesterday it was fun, good and it made sense so next time I will make it do something maybe more fun or more useful but after that I will be moving onto some different project! :)
Slackbot
Well this was some kind of experience I didn’t knew I needed but I worked on this and got into some troubles like big ones!
First one was that fucking Tokens didn’t work for me! I had to put path inside the config of dotenv because I don’t fucking know why but I had to do it…
Second was git or more of a GitHub issue so I literally named the .env file differently as an absolute idiot and brought me pain😓 because the file was not hidden from GitHub and it remembered so I had to use ai and ask it on how to erase the memory of that thing.😕
Third was the same as first but on nest and I didn’t figure out how to fix this one somehow?
But I made to work:
/dsb-ping
/dsb-catfact
/dsb-joke
And tried to make one myself
Overall I had a good time with this but I was struggling a lot and I think this is not my cup of tea really like I think I will try something different next time but I want to make this work and get this mission done! As everyone says you always need to learn something you don’t like or you don’t understand so yeah I made that today👍
Sometimes in the future my devlog will maybe improve and I will improve with it as well