« first day (97 days earlier)      last day (255 days later) » 
00:00 - 16:0016:00 - 00:00

4:07 PM
@Anonymous XD
@Ano XD
@Roc XD
 
4:24 PM
Wonder how many milliseconds it would be before that "question" would be deleted as spam.
 
user912062
4:37 PM
@Tec How do I make a chat bot?
 
user912062
I have prepared the algorithms
 
user912062
It works in the termainal
 
user912062
test
 
user912062
heh, it worked!
 
5:01 PM
@RocketNikita I remember when I got Anynobot working for the first time. The feeling of power... of unlimited possibilities... and then I realized I didn't have any good ideas (until later).
 
user912062
5:30 PM
@Ano I made a bash console in python
 
user912062
with working file system.
 
user912062
based on debian.
 
user912062
hmm no sudo
 
user912062
and therefore no apt-get
 
6:06 PM
@Anonymous Which question?
@RocketNikita Sure, I'll teach you.
@RocketNikita Wow
@RocketNikita I know
@RocketNikita really?
@RocketNikita I don't believe it.
@Ano XD
@RocketNikita meh
@RocketNikita meh
@RocketNikita meh
@RocketNikita meh
@Roc XD
So, first, install chatexchange using pip install chatexchange. Next, add the following line of code in your Python script: from chatexchange.client import Client. This imports the chatexchange client API, allowing you to use it. Next, add se_chat = Client('meta.stackexchange.com'). This creates a Client object (from my OOP view of programming which was shaped by my experience with Java) from which you can get a room object. The next step is to login to your SE account.
You can use your own account, or you can create a separate bot account and get 20 rep into it. During the Winter Bash, you can post an answer there in order to gain rep, but right now, that's not possible. Still, you can gain rep by doing at least 10 edits (assuming none of them are rejected). The code is as follows: se_chat.login('foo@bar.com','meh'). 'foo@bar.com' represents your email address, and 'meh' represents the password. Next, get a room using the following statement:
room = se_chat.get_room('1543') '1543' is the room ID in this case. Note that 1543 is the room ID for this room. Next, define the following method (a.k.a. function):
def on_event(event, _):
    if event.data['event_type'] in [1, 2]:
        msg = event.message.content_source
        if msg == 'rock':
            room.send_message('hiya')
If someone says "rock," the bot'll automatically say "hiya." Now, add the following statement: room.join(). This'll make the bot join the room. Now, do this: room.send_message('This is RocBot!'). This'll make the bot automatically say "This is RocBot!" once it joins the room. Then, add room.watch_socket(on_event). This'll allow the on_event function we defined above to be run when a room event occurs. Finally, add an infinite loop to keep your bot in the room, as follows:
while True:
    pass
Put this all together, and you get the following code:
 
6:37 PM
from chatexchange.client import Client
se_chat = Client('meta.stackexchange.com')
se_chat.login('email@email.com','password')
room = se_chat.get_room('1543')
def on_event(event, _):
    if event.data['event_type'] in [1, 2]:
        msg = event.message.content_source
        if msg == 'rock':
            room.send_message('hiya')
room.join()
room.send_message('This is RocBot!')
room.watch_socket(on_event)
while True:
    pass
 
user912062
@Tec ok
 
user912062
@Tec sending messages was easy, but web socket was harder. thx for help
 
yesterday, by TechBOT
44 secs ago, by Tech Expert Wizard
Mar 31 at 13:42, by Tech Expert Wizard
Feb 16 at 2:16, by Tech Expert Wizard
Jan 13 at 12:32, by Victor VosMottor
tb say tb say tb say tb say TEH ROOM IS SPAMM'D ;)
@Roc Really? :ok_hand:
 
user912062
@Tec I read old messages from transcript.
 
@Roc ohk
 
user912062
6:44 PM
@Tec why unix written in python is meh?
 
user912062
@Tec
 
3 mins ago, by Tech Expert Wizard
yesterday, by TechBOT
44 secs ago, by Tech Expert Wizard
Mar 31 at 13:42, by Tech Expert Wizard
Feb 16 at 2:16, by Tech Expert Wizard
Jan 13 at 12:32, by Victor VosMottor
tb say tb say tb say tb say TEH ROOM IS SPAMM'D ;)
 
user912062
@Tec you could create python scripts in my bot and run them
 
6:49 PM
@Roc XD
Anyway please try running the script I gave you.
 
user912062
@Tec it’s late
 
user912062
@Tec I’m on Ipad
 
3 hours ago, by Anonymous
Challenge: who can find the most messages in this channel that would be valid if posted as a question?
3 hours ago, by Anonymous
Such as this one.
3 hours ago, by Anonymous
6 hours ago, by Rocket Nikita
@Sha keeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeek
You can write bots in Python?
Why didn't I do that?
 
user912062
heh
 
7:08 PM
@RocketNikita You can run Python on an iPad.
Can I add my name to the list of people you can ping in the room's description?
@TechExpertWizard Meh
@TechExpertWizard Meh
@TechExpertWizard Meh
@TechExpertWizard Meh
 
@RocketNikita oh
@RocketNikita ohk
@Anonymous huh?
@Anonymous oh
@Anonymous XD
@Anonymous yeah
@Anonymous you did it in JS XD
@Roc meh
@Anonymous yeah
@Anonymous Sure.
@Anonymous XD
@Anonymous XD
@Anonymous XD
@Ano XD
 
room topic changed to Ann, Tec, and Vic's Café: Room for playing with chatbots, WAG, and for general friendly chit-chat. Ping @Ann, @Tec, @ppw, @Rock (or @Roc), @10R, @Vic and @Anon at will, others at your own risk! [bot] [chatbot] [fun] [ping] [pinging] [play] [playing] [robots] [wag] [word-association-game]
4
 
@Ano heh
 
I mehed the mehs.
4
 
7:34 PM
3 hours ago, by Anonymous
Wonder how many milliseconds it would be before that "question" would be deleted as spam.
@TechExpertWizard No put this at the beginning of your code.
 
8:15 PM
Does anyone mind if I make my Python Anynobot in here since there will be people to witness me making it?
 
9:00 PM
@Anonymous XD
@Anonymous meh
 
@TechExpertWizard Meh
 
@Anonymous WTF? Of course not. :D
@Anonymous Sure, it's fine. Everyone started like that, even the experts like me. :D
@Ano heh
 
@TechExpertWizard Better yet, put that at the beginning of everything you code.
 
@Ano XD XD XD
BTW do you prefer Oxford commas? I do.
 
room topic changed to Ann, Tec, and Vic's Café: Room for playing with chatbots, WAG, and for general friendly chit-chat. Ping @Ann, @Anon (or @Ano if you don't want to type "n"), @Tec, @ppw, @Rock (or @Roc), @10R, and @Vic at will, others at your own risk! [bot] [chatbot] [fun] [ping] [pinging] [play] [playing] [robots] [wag] [word-association-game]
 
9:05 PM
@Ano meh
 
Wait never mind.
Thought you changed it back.
 
@Anonymous huh?
@Ano WTF?
Oh. :D
 
I wonder if that's happened before in this room.
 
@Ano meh, IDK, I guess not. :D
 
Two people having edit wars over the description.
That'd be funny.
 
9:07 PM
@Anonymous I know. :D
@Ano yeah
tb hug Ano
 
@TechExpertWizard hugs @Ano
 
tb coffee Tec
 
@Anonymous brews a cup of frappuccino for @Tec
 
@Ano heh
@Tec heh
 
Your bot needs a wakeup command.
Something like:
 
9:10 PM
@Anonymous I know
@Ano It already exists:
tb wake Ano
 
@TechExpertWizard Hey, @Ano, wake up!
 
There should be another command:
tb say @TEC WAKE UP!!!
 
@TEC WAKE UP!!!
 
@Anonymous XD
@Ano heh XD
 
Can you remind me of the pip module to install for the Python client?
 
9:13 PM
@Ano pip install chatexchange
And you can also read the tutorial above.
room topic changed to Ann, Tec, and Vic's Café: Room for playing with chatbots, WAG, and for general friendly chit-chat. Ping @Ann, @Anon (or @Ano), @Tec, @ppw, @Rock (or @Roc), @10R, and @Vic at will, others at your own risk! [bot] [chatbot] [fun] [ping] [pinging] [play] [playing] [robots] [wag] [word-association-game]
 
room topic changed to Ann, Tec, and Vic's Café: Room for playing with chatbots, WAG, and for general friendly chit-chat. Ping @Ann, @Anon (not @Ano), @Tec, @ppw, @Rock (or @Roc), @10R, and @Vic at will, others at your own risk! WAR ACCEPTED!!! [bot] [chatbot] [fun] [ping] [pinging] [play] [playing] [robots] [wag] [word-association-game]
 
@Ano WTF?
XD
 
Forgot the "of".
room topic changed to Ann, Tec, and Vic's Café: Room for playing with chatbots, WAG, and for general friendly chit-chat. Ping @Ann, @Anon (not @Ano), @Tec, @ppw, @Rock (or @Roc), @10R, and @Vic at will, others at your own risk! I say "meh" to the "meh" of war. [bot] [chatbot] [fun] [ping] [pinging] [play] [playing] [robots] [wag] [word-association-game]
 
@Anonymous XD
@Ano meh
 
The "meh" war. What would that be exactly?
 
9:18 PM
@Ano I'm not talking about a "meh" war, I'm just talking about a war. :D
Tho the "meh" war appears to have caused some controversy recently. :D
 
I'm talking about the typo I did saying that I say "meh" to the "meh" war.
 
@Ano Oh. :D
 
room topic changed to Ann, Tec, and Vic's Café: Room for playing with chatbots, WAG, and for general friendly chit-chat. Ping @Ann, @Anon (or @Ano if you're lazy), @Tec, @ppw, @Rock (or @Roc), @10R, and @Vic at will, others at your own risk! [bot] [chatbot] [fun] [ping] [pinging] [play] [playing] [robots] [wag] [word-association-game]
Yay I'm the second name.
That means nothing but it makes me have a warm, fuzzy feeling inside.
 
@Anonymous meh
@Anonymous heh XD
@Ano XD
 
room topic changed to Ann, Tec, and Vic's Café: Room for playing with chatbots, WAG, and for general friendly chit-chat. Ping @Ann, @Anon (or @Ano if you're lazy), @Tec, @ppw, @Rock (or @Roc), @10R, and @Vic at will, others at your own risk! Thought your little edit would hide it from me? [bot] [chatbot] [fun] [ping] [pinging] [play] [playing] [robots] [wag] [word-association-game]
 
9:21 PM
@Ano huh?
 
This has my email and password! Remove it immediately!
room topic changed to Ann, Tec, and Vic's Café: OH NO! [bot] [chatbot] [fun] [ping] [pinging] [play] [playing] [robots] [wag] [word-association-game]
 
@Anonymous XD
@Ano XD
That message resists being moved. :D
Anyway, good prank. :D
 
Too bad I didn't think of this on April fools.
 
@Ano Yeah. :D
It'd be a great April Fool's joke. :D
Even better than the Key. :D
And the best part is changing the entire description to make it look as if you really leaked out your email and password. :D
 
Thanks.
 
9:29 PM
@Ano heh
But once this joke gets repeated it's no use. Just like when the bot hijack prank was repeated. :D
I've made the room return to the same, pristine pre-prank condition. :D
heh
 
@Ano YOU ARE TREMENDOUSLY GREAT AT JOKES AND PRANKS! :D
@Ano YOU ARE TREMENDOUSLY GREAT AT JOKES AND PRANKS! :D
 
@Tec huh?
@TechBOT heh
Oh, AFAIK this is an unsolvable bug, but I have prior experience and knowledge of this bug.
 
Let's just say that someone should remove the post. :)
 
@Ano heh, but I don't think that's needed as it's only a prank :)
 
Just in case someone still believed me.
 
9:40 PM
@Ano But there's nothing in there.
Only someone very dumb would go in there. :D
 
True.
 
10:05 PM
How do I move a message to another room?
tb alive
 
@10Rep No need to worry, I'm alive.
 
tb say ping @anon 500 times
 
ping @anon 500 times
 
tb say ping @anon 500 times ping @anon 500 timesping @anon 500 timesping @anon 500 times
 
ping @anon 500 times ping @anon 500 timesping @anon 500 timesping @anon 500 times
 
10:08 PM
sorry I just wanted to be annoying lol
tb grant 3735281 uesr
 
@10Rep This access privilege does not exist.
 
tb grant 3735281 user
tb alive
@TechExpertWizard ?
 
@Ano XD
@10Rep Easy, just click "room," then "move messages."
 
Meh
 
10:38 PM
This is the first post ever sent by Anynobot 2.0. Can you leave it pinned for a while?
4
It works!
Traceback (most recent call last):
File "<whatever>", line 4, in <module>
se_chat.login('email', 'password')
File "<whatever>", line 138, in login
self._br.login_site(self.host, email, password)
File "C:\Python39\lib\site-packages\chatexchange\browser.py", line 157, in login_site
raise LoginError(
chatexchange.browser.LoginError: failed to get `acct` cookie from Stack Exchange OpenID, check credentials provided for accuracy
Why am I getting that error?
room topic changed to Ann, Tec, and Vic's Café: Room for playing with chatbots, WAG, and for general friendly chit-chat. Ping @Ann, @Anon (or @Ano if you don't want to type the "n"), @Tec, @ppw, @Rock (or @Roc), @10R, and @Vic at will, others at your own risk! [bot] [chatbot] [fun] [ping] [pinging] [play] [playing] [robots] [wag] [word-association-game]
 
10:58 PM
@Anonymous heh
@Anonymous heh
@Anonymous That's great!
:8817477 huh?
@Anonymous Oh, this is just the darn captcha.
@Anonymous It's just a darn captcha.
@Ano meh
 
Anynobot, help
 
@Ano heh
BTW why aren't you using Anynobot's account?
 
@TechExpertWizard It doesn't have enough rep yet.
Anynobot, help
 
@Anonymous How much does it have right now?
@Ano It doesn't seem to be working.
 
Anynobot, help
I got the Anynobot, help command!
There we go.
 
11:01 PM
@Anonymous Can you please give me your code?
@Anonymous huh?
@Ano I'm confused.
 
Have to go offline now, I'll explain later.
 
@Ano ohk
Hey you seem to be back now.
 
11:46 PM
@TechExpertWizard Cool, teaching how to make a chatbot?
 
00:00 - 16:0016:00 - 00:00

« first day (97 days earlier)      last day (255 days later) »