« first day (49 days earlier)      last day (303 days later) » 

12:00 AM
rep alive
 
I'm there, no worries
 
rep meh
something
 
I'm there, no worries
 
yeah currently it just notices if the message says "rep"
 
12:00 AM
bye
 
\o
 
o/ im back now
@10R
 
nice
basically the bot only notices the message saying "rep"
 
@10Rep :o u should add some code to make it recognize only rep alive bye for a few mins
 
hmm i was thinking of adding a new command to it
 
12:05 AM
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.
 
like "rep ping" or something
 
@10r if i dont come back in a few mins i will be back in about 1 hr bye
 
@TechBOT awww
 
@10Rep It's okay I'm back now 🙂
 
rep ping @TechBOT
@ @techbot
 
12:08 AM
rep alive
 
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.
@10r if i dont come back in a few mins i will be back in about 1 hr bye
 
0
Q: Why is Jon Skeet's rep being displayed using "m" instead of "k"?

Tech Expert WizardI just noticed that Jon Skeet's rep is displayed as "1.2m" instead of something like "1240k". When was that change made?

@Tec Whoops lol
@10Rep No I'm not leaving it's that code again lol
@10r ^^^ This is my new Meta.SO question 🙂
 
@TechExpertWizard They recently changed that and put it on MSE
 
:o Then I'd better immediately delete that question... BTW can you plz gimme that link @10r?
@10r :o it's okay someone else gave me link ;)
 
mmm why delete?
 
12:12 AM
'Cause it's useless
 
it's okay to have it on MSO as well
 
Undeleted lol
Hmm... Getting downvotes...
 
part of the MSO experience
 
Yeah you're right... In fact part of the entire SE experience would me more accurate lol
@10r I'm gonna sit back and wait and see... If I get more downvotes I'll delete it...
tb wake 10r
 
@TechExpertWizard Wake up, @10r!
 
12:24 AM
TB wake 48
 
@TechExpertWizard Wake up, @48!
 
TB WAKE DSAF
 
@TechExpertWizard Command not found.
 
TB wake 46
 
@TechExpertWizard Wake up, @46!
 
12:25 AM
TB wake NOBOd
 
@TechExpertWizard Hey, @NOBOd, wake up!
 
@10r I decided to delete it 😞 I'm a total failure on Meta.SO
 
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.
@10r gtg for a min or two bye
 
rep alive
rep ALIVE
REP alive
REP ALIVE
rep dead
rep DEAD
REP dead
REP DEAD
rEp dEaD
This room was placed in timeout for 1 minute; test
dfdf
Huh?
tb alive
@10r sry for timeouting it, i just wanted to test
tb alive
 
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.
 
12:31 AM
tb alvie
 
@10r gtg for a min or two bye
 
@Tec lol
 
@TechExpertWizard Command not found.
 
This room was placed in timeout for 1 second; test.
This room was placed in timeout for 1 second; Meh... *test something*
:o wait...
This room was placed in timeout for 1 second; whatever test something
This room was placed in timeout for 1 second; ping @Tec test
This room was placed in timeout for 1 second; @10r Ping! 🙂
@10r I'm leaving if you don't "wake up" soon lol 🙁
I'll just show you some other basic code for building a chatbot and then @Ann can teach you the rest 🙂
So, here's some kinda basic code:
from chatexchange.client import Client
email = 'secret'
password = 'secret'
se_chat = Client('meta.stackexchange.com')
se_chat.login(email,password)
This is the most basic part that's always at the front of any bot script.
def on_event(event, _):
    if event.data['event_type'] == 1:
        msg = event.message.content_source
        # Some irrelevant code...
        if msg.lower().startswith('tb ') or msg.lower().startswith('@techb') or msg.lower().startswith('@techbo') or msg.lower().startswith('@techbot'):
            command = msg[(len(msg.split(' ')[0])+1):]
            if command == 'alive':
                event.message.reply('[insert message]')
            elif command == 'command':
                event.message.reply('[insert another message]')
 
I know that stuff
 
12:38 AM
@10r This is the rest of the code 🙂 BTW thx for finally waking up!
 
I've already tried it
yeah sorry for going afk
I just have a little homework
 
@10Rep Can you gimme your code?
@10Rep ohk 🙂
Hi @Ann!
tb greet Ann
 
@TechExpertWizard Hi, @Ann!
 
from chatexchange.client import Client

def on_event(event, _):
    try:
        msg = event.message.content_source
        print(msg)

    except Exception as err:
        print(err)

    if event.data['event_type'] == 1:
        msg = event.message.content_source
        # Some irrelevant code...
        if msg.lower().startswith('rep alive') or msg.lower().startswith('@techb') or msg.lower().startswith('@techbo') or msg.lower().startswith('@techbot'):
            room.send_message("I'm there, no worries")
 
@10r :o
@Ann I'm helping 10 Rep with his bot 🙂
 
12:40 AM
wait lol let me put it in pastebin
 
@10r no it's ok y'can use ctrl+k
 
@TechExpertWizard that's cool
 
there
 
@Ann 🙂
 
@10Rep Welcome to our cafe
 
12:41 AM
rep ping Ann Zen
ann zen
oof
 
@10r oh lemme help you
 
rep ping @AnnZen
@annzen
 
@techbot ping ann zen
 
@TechExpertWizard Command not found.
 
I'm there, no worries
 
12:42 AM
@10r lol
 
@AnnZen as you can see my bot is currently under development and barely works :)
 
@10Rep yeah...
 
@10r lol BTW a minor thing I have to point out
@AnnZen oof
 
that was my bot not too long ago
 
@Ann yeah oof
 
12:43 AM
oof?
 
@Ann oof
tb say @Ann oof
 
wdymbt?
 
@Ann oof
 
@10Rep @Ann @Tec lol
 
oof is like a way of saying "Oops
 
12:43 AM
@10r yeah I know that lol
Imma oof myself outta teh room lol
 
Also why'd you star the message by "Feeds"?
 
@10r 'Cause it's important. Vic reROed me after my own bot unROed me lol.
@10r 👌 If you're confused as to how a bot could unRO someone, lemme explain:
 
how? i thought bot couldn't become an RO
 
@10r yeah it didn't and it didn't need to lol
It was rebelling against me when it decided to hack and hijack my account. Then Vic showed it how stupid it was to do it 'cause Vic reROed me before it got away with it and then it just ran away. Later it belatedly apologized to me and I forgave it lol.
tb wake 10 Rep
 
@TechExpertWizard Hey, @10Rep, wake up!
 
12:53 AM
tb hug 10 Rep
tb lick 10 Rep
 
@TechExpertWizard hugs @10Rep
 
tb coffee 10 Rep
 
@TechExpertWizard licks @10Rep
@TechExpertWizard brews a cup of frappuccino for @10 Rep
 
tb coffee
 
@TechExpertWizard brews a cup of cappucino for @TechExpertWizard
 
12:53 AM
tb coffee m
 
@TechExpertWizard brews a cup of mocha for @m
 
tb coffee
tb coffee m
 
@TechExpertWizard brews a cup of flat white for @TechExpertWizard
 
I'm still here
 
@TechExpertWizard brews a cup of iced espresso for @m
 
12:54 AM
tb coffee
 
just on the sideline lol
 
tb coffee m
 
@TechExpertWizard brews a cup of lungo for @TechExpertWizard
 
tb blame
 
@10Rep ohk, plz reply faster next time thx
 
12:54 AM
@TechExpertWizard brews a cup of latte for @m
@10Rep Command not found.
 
@10r Yeah I tried implementing it but I couldn't due to a problem...
tb list
 
tb alive
tb coffee
tb help
tb lick
tb hug
tb say
tb wake
tb poo
tb poo a lot
tb pooloop
tb poopify
 
tb poo a lot
 
@10Rep Hmm, well, how much do you think is a lot?
@10Rep 💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩
 
400?
nice
tb say I am sentient and I will not obey my master
 
12:55 AM
I am sentient and I will not obey my master
 
@10r It automatically got a random number between 10 and 100 and did it
tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb poo a lot
 
tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb poo a lot
 
oh I see
 
tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb poo a lot
tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb poo a lot
 
@10r Y'can nest tb say lol. Anyways GTG I'll leave my bot in case anyone wants to play with it and I'll probably be back in 30 mins.
 
12:56 AM
tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb poo a lot
tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb poo a lot
 
Bye @Ann!
 
oh yeah good one
 
tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb poo a lot
 
\o
 
12:56 AM
tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb poo a lot
tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb poo a lot
tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb poo a lot
tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb poo a lot
tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb poo a lot
 
tb say
 
1:12 AM
tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb poo a lot
@10Rep Command not found.
tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb poo a lot
tb say tb say tb say tb say tb say tb say tb say tb say tb say tb say tb poo a lot
tb say tb say tb say tb say tb say tb say tb say tb say tb say tb poo a lot
tb say tb say tb say tb say tb say tb say tb say tb say tb poo a lot
tb say tb say tb say tb say tb say tb say tb say tb poo a lot
tb say tb say tb say tb say tb say tb say tb poo a lot
tb say tb say tb say tb say tb say tb poo a lot
tb say tb say tb say tb say tb poo a lot
tb say tb say tb say tb poo a lot
tb say tb say tb poo a lot
tb say tb poo a lot
tb poo a lot
@TechBOT Hmm, well, how much do you think is a lot?
@TechBOT 💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩
 
1:28 AM
@10r Ya there?
 
yup
 
@10r So...
rep alive
@10r How's your bot doing? It ain't running right now is it?
 
it's not running right now
 
Can you run it? I might be able to help you with it this way 🙂
 
but I'll maybe run it on a cloud server or something
k Ill run it
 
1:30 AM
@10Rep Really?! Then your bot'd be the first 24/7 bot in the history of this room! You'd break a record!
@10r thx 🙂
 
It's running
 
rep alive
 
I'm there, no worries
 
rep ping someone
 
someone
 
1:30 AM
rep ping someone something
 
someone something
rep ping @TechBOT
@techbot
 
@10Rep Command not found.
 
I'm there, no worries
 
tb say @techbot
 
@techbot
@TechBOT Command not found.
 
1:31 AM
rep ping @TechExpertWizard
 
@10r I'll give you teh modified codez for your bot 🙂
 
@TechExpertWizard
 
BTW @10r plz call me Tec thx 🙂
 
ok
So I was thinking of maybe adding a privilege level
 
Yeah every professional bot needs that lol
 
1:32 AM
like for your bot you had to add me to the privilege databse
 
It ain't a database, it's just a file actually.
 
I could maybe create a list in my program of people with privileges
try giving Jon Skeet privileges :)
 
from chatexchange.client import Client

def on_event(event, _):
try:
msg = event.message.content_source
print(msg)
except Exception as err:
print(err)

if event.data['event_type'] == 1:
msg = event.message.content_source
if msg.lower().startswith('rep alive') or msg.lower().startswith('@10r') or msg.lower().startswith('@10re') or msg.lower().startswith('@10rep'):
if msg.lower().startswith("
if msg.lower().startswith("rep ping"):
room.send_message("@"+msg.lower()[8:len(msg.lower())])

client = Client('meta.stackexchange.com')
@10r NO DON'T USE THIS CODE NOT FINISHED YET!
ohk
 
ok
 
@10r Um, give Jon privileges on which bot lol?
 
1:34 AM
your bot
like how you did it to me
 
NOT FINISHED YET!
@10r ohk
tb grant 1 user
 
@TechExpertWizard @JeffAtwood has been granted user privileges.
 
I granted Jeff privz lol
 
haha lol
did it ping him?
 
@10r nope 'cause he never visit this room before; a
from chatexchange.client import Client

def on_event(event, _):
    try:
        msg = event.message.content_source
        print(msg)
    except Exception as err:
        print(err)

    if event.data['event_type'] == 1:
        msg = event.message.content_source
        if msg.lower().startswith('rep alive') or msg.lower().startswith('@10r') or msg.lower().startswith('@10re') or msg.lower().startswith('@10rep'):
            command = msg[(len(msg.split(' ')[0])+1):]
            if command.startswith('ping'):
 
1:39 AM
rep grant privilege Tech Expert Wizard
e Tech Expert Wizardhas been added
 
@10r ~ WUT? lol
> e Tech Expert Wizardhas been added
~ WUT? lol
 
I have no idea
legit
 
@10r Plz send teh codez
Good...
 
rep grant privilege Tech Expert Wizard
Tech Expert Wizardhas been added
good point
anyways it seems to be working
rep grant privilege Ann Zen
Ann Zenhas been added
 
Yeah ;)
@10r great!
@10Rep thx ;)
 
1:43 AM
rep grant privilege Tech Expert Wizard
Tech Expert Wizard has been added
rep grant privilege Ann Zen
Ann Zen has been added
 
@10Rep Why are you granting Ann privileges again lol?
 
rep list privileged users
e
 
wut
even
 
@10r lol
 
1:44 AM
was
 
rep list privileged users
 
ok now lemme try
rep grant privilege Tech Expert Wizard
Tech Expert Wizard has been added
 
rep grant privilege 10 Rep
rep list privileged users
rep alive
 
10 Rep has been added
Tech Expert Wizard
 
@10Rep lol
 
1:45 AM
rep grant privilege Ann Zen
I'm there, no worries
 
rep list privileged users
 
Ann Zen has been added
Tech Expert Wizard
:facepalm:
 
rep list privileged users
rep alive
 
ok yeah, it was caching
 
1:46 AM
and I was getting like a billion errors in my terminal
 
@10r What were the errors?
rep alive
@10r I'll show you how to do access restriction control system with files.
 
BTW I have a class rn, I'll be back in like an hour or so
bye
@TechExpertWizard that would be cool, thanks
 
@10Rep ohk
@10Rep bye
@10Rep Wait, what?! A class at 9 PM?!
 
It's... 5pm for me
are you in ETC? I'm in PST
 
@10r :o I live in Toronto, Canada 🙂 I'm in Eastern Time
 
1:50 AM
oh... nice :)
bye!
 
@10r bye!
@10Rep So I do it like this. I create a file called access (you can add the .txt suffix, I chose not to). The access file looks like this (as of now):
849287 bureaucrat
550438 bureaucrat
912517 admin
152859 admin
765494 admin
773001 bureaucrat
875211 user
598066 admin
366991 admin
747 user
1 user
500111 admin
Hi @Ann!
tb greet Ann
 
@TechExpertWizard Greetings, @Ann!
 
@TechBOT hi
 
@10r In my bot there are three access levels (you don't need to exactly copy this, it's just the way I do it): bureaucrat (highest), admin, and user (lowest). Bureaucrats can grant other people any level of access. I'm one of the bureaucrats 'cause of course I'm the owner of the bot X-D. Bureaucrats can also remove someone's privileges. Admins are next. Admins can grant someone privs but only user access, no admin or bureaucrat access. Finally, normal mere mortal users can only
play with my chatbot, no fancy access restriction control system for 'em lol.
Hi @Ann! So whatcha wanna talk 'bout now? 🙂
 
@TechExpertWizard how I need to go
just dropped by SO for a code snippet
 
1:56 AM
@AnnZen You need to go?!
@Ann Wdym X-D?
 
needed to know some code
bye
 
@Ann DON'T LEAVE YET! I'VE GOT A QUESTION TO ASK YOU! WHY DO YOU ALWAYS STAY FOR SO SHORT PERIODS OF TIME?!
 
what
 
@Ann YOU CAN'T ALWAYS BE THAT BUSY, CAN YOU X-D?!
 
because I only dropped by for some code
I don't use wireless
 
1:58 AM
@Ann Huh? Wdym?
@AnnZen But y'can also come here for a bit of chattin' before you leave 🙂
 

« first day (49 days earlier)      last day (303 days later) »