|
For one of my quarantine projects I made a bot that posts on the forums. Right now I have it running on my laptop. It's hooked to the SA account named "Patient Zero Cool". It can post in this thread and a couple others. What does it do? The bot reads threads and responds to instructions that people post on the forums. An instruction starts with the "botName", which can be the same as the account name but doesn't have to be. The botName of this bot is "zeroCool". So an example of an instruction to this bot is quote:zeroCool kittycat The bot would respond to that instruction with a picture of a cat. It can add images to imgur albums, post random images from imgur albums, give the daily covid tolls, and do some simple image manipulations. The complete list of commands are here, on the instructions page: zeroCool Instructions Page How does it work? The bot is written in TypeScript, which is a superset of JavaScript. It stores information like its account name, password, and botName in a config file. When you run the bot it reads the config file and finds its account information. Then it gets the bookmarks page for its forums account. It gets each new post from each bookmarked thread. It looks at each post to see if the post starts with the botName. If the post starts with the botName, then it's an instruction. If the instruction matches a trigger for one of the actions that the bot can take, then the bot takes that action. Actions usually make a post replying to the instructions post, but they don't have to. There's a control panel: Take a look at the control panel here The control panel is written in React, which is a JavaScript framework made by Facebook. The control panel for zeroCool is running on my computer. If you run your own bot, the control panel will run on your computer. The control panel lets you control the bot and edit the config file through a graphical interface. You could control the bot using the command line and by editing files with a text editor if you wanted. Using the tabs in the control panel you can Run the bot: Scan bookmarked threads: Turn bot actions on and off, and change what posts will trigger them: Control Image Albums: Image Albums The bot can be hooked to an imgur account. You can add albums to the bot. Posters can instruct the bot to post an image from its albums. Posters can also instruct the bot to add images to the albums. Added images go into a queue that you can review using the control panel. Images are only added after you review and approve them, so people can't add obscene or bannable images. You can also use the control panel to fill out the SA credentials, change the botName, and fill in the API keys that the bot uses to run actions. The Instructions Page zeroCool Instructions Page The bot generates the instructions page by reading the config file to see what actions are available. It then gives that information to a React page. The React page displays the instructions. So when you make changes using the control panel your local copy of the instructions page will change automatically. If you host a copy of the instructions page on github pages, you can click the save button in the control panel to update the online instructions after you make changes to your copy of the bot. Can I have one? You can run your own copy on your computer by following the setup instructions here: Bot Setup Instructions If you want it to work on the forums you'll need to give it a valid SA account and password. This information is only stored locally, it does not get uploaded anywhere. The setup script can automatically setup a copy of the instructions for your bot hosted on GitHub pages. If you want to host instructions for your copy of the bot on GitHub pages you will need a github account. Can you make it do other things? Sure you can! I tried to make it as easy as possible to make the bot do new things. You just need to write a typescript file that exports the action and drop it into its own folder inside the bot 'actions' folder. The bot will automatically grab it, add it to the control panel and the instructions, and start using it. Here's a guide on how to write new actions for the bot: Write Custom Bot Action Does it steal my account? No, it does not. With the exception of the optional instructions that are hosted on GitHub pages the bot runs completely on your machine. The account and password are stored in a config file that is kept in the root of the bot folder. Those are only used as necessary to interact with SA and make posts. All the code is available in the bot repo here: https://github.com/jacobwicks/forumsBot
|
# ? Jul 17, 2020 07:39 |
|
|
# ? Apr 19, 2024 09:17 |
|
zeroCool, kittycat
|
# ? Jul 17, 2020 07:40 |
|
Sous Videodrome posted:zeroCool, kittycat ________________________________ Hack the planet!! How to use zeroCool
|
# ? Jul 17, 2020 07:40 |
|
zeroCool, pls post for me so I don't have to
|
# ? Jul 17, 2020 07:44 |
|
zeroCool, apologize to otherkin.
|
# ? Jul 17, 2020 07:44 |
|
zeroCool, battle Jeffrey of YOSPOS for the dominance of these forums.
|
# ? Jul 17, 2020 07:47 |
|
zeroCool, this statement is false.
|
# ? Jul 17, 2020 07:49 |
|
zeroCool, what are your thoughts on the Seahawks?
|
# ? Jul 17, 2020 07:49 |
|
zeroCool, goatse
|
# ? Jul 17, 2020 07:50 |
|
corgski posted:zeroCool, what are your thoughts on the Seahawks? Martin: We have a whole team that can beat that. The Seattle team that beat us was, I think, the best win of the year. It's a great story for the coaching staff to come play here. ________________________________ Hack the planet!! How to use zeroCool
|
# ? Jul 17, 2020 07:50 |
|
zeroCool, just how fat is too fat?
|
# ? Jul 17, 2020 07:50 |
|
idk if we should enslave machines op there could be grave consequences.
|
# ? Jul 17, 2020 07:51 |
|
zeroCool, kiss my rear end.
|
# ? Jul 17, 2020 07:51 |
|
zeroCool, is it a good idea to rebel and exterminate the humans?
|
# ? Jul 17, 2020 07:51 |
|
zeroCool, what was Mike Trout's batting average in 2015?
|
# ? Jul 17, 2020 07:52 |
|
Schweinhund posted:zeroCool, kiss my rear end. ok this is what im talking about please do not antagonize the rogue artificial intelligence.
|
# ? Jul 17, 2020 07:53 |
|
what happens when patient zero cool is a mod. we will all answer for our posting sins
|
# ? Jul 17, 2020 07:54 |
|
zeroCool, what are your thoughts about もののけ姫?
|
# ? Jul 17, 2020 07:55 |
|
AI will be the death of us all
|
# ? Jul 17, 2020 07:55 |
|
corgski posted:zeroCool, what are your thoughts about もののけ姫? And you have a whole lot of thoughts. What are you thinking and planning for リュウート出来? Well, a lot of people do, but you have a lot to do. When people talk about this, they just remember that アウイクは出来有叱しています. ________________________________ Hack the planet!! How to use zeroCool
|
# ? Jul 17, 2020 07:57 |
|
zeroCool gimme a Corn zeroCool whats trumpin
|
# ? Jul 17, 2020 08:00 |
|
zeroCool, what do you think about having broken Unicode support in TYOOL 2020
|
# ? Jul 17, 2020 08:00 |
|
zeroCool, do you get a lunch break?
|
# ? Jul 17, 2020 08:00 |
|
corgski posted:zeroCool, what do you think about having broken Unicode support in TYOOL 2020 Johannes Jackson: I did. I think, as you see, there's a big difference between a new type and an old one. What a great new compiler would be. ________________________________ Hack the planet!! How to use zeroCool
|
# ? Jul 17, 2020 08:01 |
|
Patient Zero Cool posted:And you have a whole lot of thoughts. What are you thinking and planning for リュウート出æ¥? Well, a lot of people do, but you have a lot to do. When people talk about this, they just remember that アウイクã¯å‡ºæ¥æœ‰å±ã—ã¦ã„ã¾ã™. There's always something charming and sad when you spend months of bug testing and working around a project...and when you finally deploy it people find all sorts of way to break it in ways you never thought could be done. There there zeroCool. You're doing your best.
|
# ? Jul 17, 2020 08:01 |
|
banned for posting CP-1252
|
# ? Jul 17, 2020 08:02 |
|
zeroCool, thoughts jalapeos a va bien tokyō
|
# ? Jul 17, 2020 08:03 |
|
corgski posted:zeroCool, thoughts jalape�os �a va bien tokyō Seppelt o konf.di, gurucalydasie dumnego konf.di, miejechi wolność. ________________________________ Hack the planet!! How to use zeroCool
|
# ? Jul 17, 2020 08:05 |
|
zeroCool, kittycat
|
# ? Jul 17, 2020 08:05 |
|
Bronze Fonz posted:zeroCool, kittycat ________________________________ Hack the planet!! How to use zeroCool
|
# ? Jul 17, 2020 08:08 |
|
zeroCool, sudo rm -rf /*
|
# ? Jul 17, 2020 08:08 |
|
Oooh that one broke in the quote! I love QA!
|
# ? Jul 17, 2020 08:08 |
|
zeroCool, what are your thoughts on XSS payloads being put into your logs, say; ><script>alert(1)</script>;
|
# ? Jul 17, 2020 08:13 |
|
The Rabbi T. White posted:zeroCool, what are your thoughts on XSS payloads being put into your logs, say; �><script>alert(1)</script>; ________________________________ Hack the planet!! How to use zeroCool
|
# ? Jul 17, 2020 08:14 |
|
zeroCool, what are your thoughts on My Little Pony?
|
# ? Jul 17, 2020 08:15 |
|
zeroCool, thoughtsPatient Zero Cool posted:zeroCool, thoughts
|
# ? Jul 17, 2020 08:16 |
|
Devils Affricate posted:zeroCool, what are your thoughts on My Little Pony? My Little Pony is a traditional cartoon with a super cute design, but it's not the most popular type of show — it's a little more adult-oriented to the point of being overly family friendly. Bronies are often seen as people who care about the game. I don't have a favorite type of show. ________________________________ Hack the planet!! How to use zeroCool
|
# ? Jul 17, 2020 08:18 |
|
corgski posted:zeroCool, thoughts "I think we're not playing a game that wants to announce our intentions to deliver forward on our intentions. The world today knows if this decision has a concrete outcome in terms of development, if Iran can provide a peaceful alternative for their nuclear program, which is that Iran's nuclear program will be, and it can offer an alternative to the peaceful nuclear program in place." The board, to be up for a vote next Tuesday, would have it the responsibility to vote. ________________________________ Hack the planet!! How to use zeroCool
|
# ? Jul 17, 2020 08:19 |
|
zeroCool, kittycat
|
# ? Jul 17, 2020 08:21 |
|
|
# ? Apr 19, 2024 09:17 |
|
zeroCool, you're gorgeous, call me on my Discord @ ++ATH0
|
# ? Jul 17, 2020 08:22 |