« first day (1 day earlier)      last day (351 days later) » 
00:00 - 16:0016:00 - 00:00

12:38 AM
@AnnZen Um, actually, what does "hoiikiguk" even mean, or is it just gibberish?
@AnnZen Sorry, I stopped the script 'cause I was busy. It's too bad that when you and @Vic wanna play with the bot, I've stopped the script. I hope you and @Vic'll be around tomorrow morning, when I can run the script. But for now, I'm just going to show you the chat message event handler code that I use to make my bot do a lot of stuff :)
 
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.
 
def on_event(event, _):
    if event.data['event_type'] == 1:
        msg = event.message.content_source
        if msg.startswith('tb '):
            send = ''
            if msg == 'tb alive':
                send = "No need to worry, I'm alive."
            elif msg == 'tb coffee':
                send = 'Brewing a cup of '+random.choice(['black','latte','cappucino','americano','espresso','doppio','cortado','red eye','galão','lungo','macchiato','mocha','ristretto','flat white','affogato','café au lait','iced','iced espresso','cold brew','frappuccino','nitro','mazagran'])+' coffee.'
And the bot's alive right now :)
tb alive
 
No need to worry, I'm alive.
 
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.You can get a list of all commands by running tb list, or you can run tb help command to learn more about a specific command.
 
12:44 AM
tb list
 
tb alive
tb coffee
tb hi
tb hello
tb help
tb say
Command not found.
 
@TechBOT Hmm, this is strange ;D
tb list
 
tb alive
tb coffee
tb hi
tb hello
tb help
tb say
Command not found.
 
Lemme check the code
Well, it's not supposed to do that. @Vic Any help here? My message event handler code is above :)
tb help hi
 
Says hi. Syntax: tb hi
 
12:49 AM
@AnnZ Just added you in the room's name, otherwise I thought it might feel a bit unfair for you, 'cause you're one of the first room owners :) Even @The or @sha isn't still a room owner ;D
 
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.
No need to worry, I'm alive.
 
 
11 hours later…
12:03 PM
@AnnZ @Vic Do you want to play with my chatbot?
 
@Vic Sure. I'm going to start the bot :)
 
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.
 
tb help
tb alive
 
12:04 PM
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.You can get a list of all commands by running tb list, or you can run tb help command to learn more about a specific command.
 
tb list
 
No need to worry, I'm alive.
 
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.
 
show me the list ;D
 
12:04 PM
@Vic Sorry, I just restarted the bot.
tb list
 
tb alive
tb coffee
tb hi
tb hello
tb help
tb say
 
Command not found.
Command not found.
 
shrug
why?
tb alive
 
@Vic Actually, "Command not found." is probably a response to tb list, since I find it says "Command not found." after you run tb list. Lemme check the code and see what it does.
 
12:05 PM
Hi!
 
No need to worry, I'm alive.
 
@Vic I guess it's a bit slow ;D Just like your bot :(
 
tb alive
 
No need to worry, I'm alive.
 
12:06 PM
tb coffee
 
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.
 
@Vic Sorry, just restarted the bot ;D
tb coffee
 
Brewing a cup of macchiato coffee.
 
@Tech Can you show me the code? ;)
 
12:07 PM
tb list
@Vic Sure.
 
tb alive
tb coffee
tb hi
tb hello
tb help
tb say
Command not found.
 
@Vic I'll just post the message event handler code.
def on_event(event, _):
    if event.data['event_type'] == 1:
        msg = event.message.content_source
        if msg.startswith('tb '):
            send = ''
            if msg == 'tb alive':
                send = "No need to worry, I'm alive."
            elif msg == 'tb coffee':
                send = 'Brewing a cup of '+random.choice(['black','latte','cappucino','americano','espresso','doppio','cortado','red eye','galão','lungo','macchiato','mocha','ristretto','flat white','affogato','café au lait','iced','iced espresso','cold brew','frappuccino','nitro','mazagran'])+' coffee.'
 
It's probably can be rewrited
say like this
 
And one of the problems is I don't know why it says "Command not found." each time after I run tb list ;D
 
12:08 PM
@Vic Thanks!
 
def on_event(event, _):
    if event.data['event_type'] == 1:
        msg = event.message.content_source
        if msg.startswith('tb '):
            run(msg[3:])
say like this
now create run f
 
@Vic Um, what?
 
@Vic Oh, great idea :)
 
def run(command):
    if command == 'blah-blah-blah':...
    ...
    else:
        room.send_message('no such command')
if-elif-else
It's basically more neat
 
12:11 PM
@Vic That's a terrific idea, dunno why I didn't think of it :)
 
But the best way is to use decorators but do you know what is it ? ;)
@Tech
 
@Vic What are decorators? P.S. You can just call me @Tec :)
 
okay @Tec
decorators are basically wrappers
 
@AnnZen Do you wanna play with my chatbot? Also, how's your chatbot doin'?
 
12:12 PM
@Vic Oh, OK, thanks!
 
great article on them
 
@Vic I'll take a look at the article. Thanks!
 
Decorators are used in Smokey's code but I don't use them in my bot
 
@Vic Then why didn't you use them in your own chatbot?
 
It is actually simpler to use if-elif-else ;)
 
12:14 PM
@Vic Can you see my deleted message above?
 
@Vic Then why can't I see my own deleted message? I'm one of the room owners too ;D
 
click history
in drop-down
 
@Vic Oh wait, I can do that whether I'm the room owner or not with my own messages ;D Sorry, I forgot that :)
 
sure ;)
 
12:16 PM
@Vic I don't wanna use decorators 'cause they're harder than if-elif-else ;D
@Vic Can you bring in your own chatbot? I haven't played with it for a long time :)
 
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.
 
@Vic Are you there?
@Vic I wish Python had switch-case, that would've made this much more easier :)
 
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.
 
@Vic Now I'm using the simplified version :)
@Vic Wanna play with my chatbot?
tb list
 
12:35 PM
Command not found.
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.
 
tb alive
tb coffee
tb hi
tb hello
tb help
tb say
Command not found.
 
tb hello
 
Hello!
 
tb hi
tb alive
 
12:37 PM
Hi!
 
tb coffee
 
No need to worry, I'm alive.
 
Brewing a cup of lungo coffee.
 
tb say something
 
12:37 PM
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard. You can get a list of all commands by running tb list, or you can run tb help command to learn more about a specific command.
Command not found.
 
12:51 PM
hi guys!
@VosMottor'sBot hi
 
@VosMottor'sBot hi
@VictorVosMottor hi
@VosMottor'sBot hi
@VosMottor'sBot hi
@VosMottor'sBot hi
@VosMottor'sBot hi
@VosMottor'sBot hi
@VosMottor'sBot hi
:8677118 hi
@VosMottor'sBot hi
@VosMottor'sBot hi
 
tb alive
 
12:56 PM
No need to worry, I'm alive.
 
tb list
 
tb alive
tb coffee
tb hi
tb hello
tb help
tb say
Command not found.
 
tb coffee
 
Brewing a cup of cappucino coffee.
 
Oh it's fast ;D
Gimme your code please
I probably have some ideas on it
@Tec
 
12:57 PM
@Vic Stopped the bot. I need to leave 'cause I have something to do. Goodbye :)
 
ohk
bye
@Tec
 
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.
 
@Vic Wanna play with my chatbot now? I've got time now :)
 
tb alive
 
@VictorVosMottor No need to worry, I'm alive.
 
1:07 PM
tb hi
 
@VictorVosMottor Hi!
 
Hello everyone.
tb hi
 
@AnnZen Hi!
 
tb help
 
@AnnZen Hello! I'm Tech BOT, and my owner is Tech Expert Wizard. You can get a list of all commands by running tb list, or you can run tb help command to learn more about a specific command.
 
1:09 PM
@AnnZen Good to see you here. I pinged you as @AnnZ but I don't know why you didn't respond until I invited you here ;D :)
@AnnZen Now, what can your chatbot do right now? P.S. Please don't tell me it still can't do anything ;D :(
 
I was away from the internet.
 
ohk
Well then, what can your chatbot do now?
 
@TechExpertWizard nnnnnnnnnnnnnnnnnnothing
 
@AnnZ But my chatbot can already do lots of things, and you actually had a head start. I only started developing my own chatbot a few hours after you ;D :)
 
it's reaaaaaally fun to work on, but I've been busy :(
 
1:11 PM
@AnnZ Then how 'bout I give you my bot's code so that you'll have a basic framework to build your own chatbot.
 
`Oh, that'd be great!
 
@AnnZ OK.
def run(command):
    if command == 'alive':
        return "No need to worry, I'm alive."
    elif command == 'coffee':
        return 'Brewing a cup of '+random.choice(['black','latte','cappucino','americano','espresso','doppio','cortado','red eye','galão','lungo','macchiato','mocha','ristretto','flat white','affogato','café au lait','iced','iced espresso','cold brew','frappuccino','nitro','mazagran'])+' coffee.'
    elif command == 'hi':
        return 'Hi!'
    elif command == 'hello':
        return 'Hello!'
@AnnZ Here it is ;D :)
 
Thanks.
 
@AnnZ You're welcome :)
 
I've got another way to implement run function
You can save all the commands in a dict like this
 
1:14 PM
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.
 
@Vic Yeah, great idea :)
 
commands = {'name': func, 'name2': func}
 
tb coffee
 
@AnnZen Brewing a cup of cortado coffee.
 
tb wake Ann
 
1:15 PM
@TechExpertWizard Hey, @Ann, wake up!
 
tb command
 
@AnnZen Command not found.
 
@Ann That's my newest feature :) I'll just add it in the documentation.
 
:)
 
def run(command):
    cmd = commands.get(command)
    if cmd:
        cmd()
 
1:16 PM
@Vic Great idea. But I still prefer if-elif-else, although @Ann you can try that if you want :)
 
if-elif-else is going to confuse you @Tec and make your code unreadable
 
@Vic ohk, good point :)
 
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.
 
@Vic @Ann Just restarted my bot :)
tb help
 
@TechExpertWizard Hello! I'm Tech BOT, and my owner is Tech Expert Wizard. You can get a list of all commands by running tb list, or you can run tb help command to learn more about a specific command.
 
1:17 PM
tb help wake
tb list
 
@TechExpertWizard Command not found.
tb alive
tb coffee
tb hi
tb hello
tb help
tb say
tb wake
 
@TechBOT @Vic Hmm, strange, I thought I'd added wake in the help list ;D :)
 
it is there ain't it?
 
tb help wake
 
@TechExpertWizard Command not found.
 
1:18 PM
ah
@Tec can you show me the full code?
 
@Vic It's in the list but it ain't in the help, which was what I meant when I said "help list"
 
@Vic OK, sure :)
elif command.startswith('tb help '):
    c = command[8:]
    if c == 'alive':
        return 'A command to see whether the bot is there. Syntax: `tb alive`'
    elif c == 'coffee':
        return 'Brews a cup of coffee. Syntax: `tb coffee`'
    elif c == 'hi':
        return 'Says hi. Syntax: `tb hi`'
    elif c == 'hello':
        return 'Says hello. Syntax: `tb hello`'
    elif c == 'help':
        return 'Shows information about the chat bot, or about a specific command. Syntax: `tb help [ command ]`'
 
Um... did you reboot it?
 
@Vic I remember I already rebooted it. I'm going to try rebooting it again.
tb wake Ann
 
1:20 PM
@TechExpertWizard Hey, @Ann, wake up!
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.
 
tb wake TechB
 
@TechExpertWizard Hey, @TechB, wake up!
 
tb help wake
 
@TechExpertWizard Command not found.
 
@Vic Any help here? Thanks!
 
1:21 PM
@Tec you can also paste the whole code to pastebin
whole
bug is somewhere else
probably
 
@Vic OK, sure :)
def run(command):
    if command == 'alive':
        return "No need to worry, I'm alive."
    elif command == 'coffee':
        return 'Brewing a cup of '+random.choice(['black','latte','cappucino','americano','espresso','doppio','cortado','red eye','galão','lungo','macchiato','mocha','ristretto','flat white','affogato','café au lait','iced','iced espresso','cold brew','frappuccino','nitro','mazagran'])+' coffee.'
    elif command == 'hi':
        return 'Hi!'
    elif command == 'hello':
        return 'Hello!'
 
ctrl+k?
 
@Vic Whoops :) There. Fixed :) P.S. Did you know that I'm actually multitasking between our own Den and Shadow's Den 'cause I'm also chattin' with @sha, @Zoe, and @Mith :)
 
but... you didn't post help command
huh
 
@TechExpertWizard Are you a member of any FB python groups?
 
1:24 PM
@Vic No, it's in there, you need to click "(see full text)".
@Ann What Python groups?
 
@TechExpertWizard No it's not in there
 
Facebook.
 
@Tec doesn't like social networks and so do I
@Ann
 
@Ann Yeah, I hate social networks like Facebook ;D :)
in Discussion between Tech Expert Wizard and Victor VosMottor on Stack Overflow Chat, 2 days ago, by Tech Expert Wizard
@Vic But I don't like social networks and social media myself X-D
 
tb wake
 
1:28 PM
@AnnZen Command not found.
 
@Ann No, you need to do tb wake Ann.
tb wake Vic
 
@TechExpertWizard Hey, @Vic, wake up!
 
tb wake Ann
 
@TechExpertWizard Hey, @Ann, wake up!
 
@Ann You see, that's how you use it.
tb wake Vic
 
1:29 PM
@TechExpertWizard Hey, @Vic, wake up!
 
@Ann And actually I do need to wake @Vic up right now 'cause he ain't talkin' anymore. Wake up, @Vic!
tb wake Ann
 
@TechExpertWizard Hey, @Ann, wake up!
 
@Ann @Vic Why ain't ya talkin' anymore?
 
I'm sorry, I'm pretty busy so I have other browsers open, my pc is on mute so I can't hear.
 
@Ann Oh, OK, that's fine, I mean, I'm not forcing you to play with my chatbot, I was just curious and wonderin' why you ain't talkin' :)
 
1:33 PM
I think I'll catch you later, okay :)
 
@Ann Sure, OK :)
 
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.
 
@Vic plz. Help with my chatbot. thx ;D :)
 
what do you want me to do actually?
;)
 
tb help wake
 
1:40 PM
@TechExpertWizard Command not found.
 
@Vic You see, it says that, and I gave you my code. Help, plz. thx!
tb wake Vic
 
@TechExpertWizard Hey, @Vic, wake up!
 
@Vic Plz, help!
 
@TechExpertWizard I don't see your code
where's it ;)
 
@Vic Above ;D :)
 
1:42 PM
ah
 
@Vic It's this message.
20 mins ago, by Tech Expert Wizard
def run(command):
    if command == 'alive':
        return "No need to worry, I'm alive."
    elif command == 'coffee':
        return 'Brewing a cup of '+random.choice(['black','latte','cappucino','americano','espresso','doppio','cortado','red eye','galão','lungo','macchiato','mocha','ristretto','flat white','affogato','café au lait','iced','iced espresso','cold brew','frappuccino','nitro','mazagran'])+' coffee.'
    elif command == 'hi':
        return 'Hi!'
    elif command == 'hello':
        return 'Hello!'
 
and what doesn't work?
 
@Vic But you need to scroll up to see the entire thing, 'cause you ain't going to be able to click "see full text" here in my quotation ;D :)
tb help wake
 
@TechExpertWizard Command not found.
 
Errrrrrrrrrrrrrr
 
1:44 PM
@Vic You can see it ;D :)
 
tb help help
 
@VictorVosMottor Command not found.
 
tb help alive
 
@TechExpertWizard Command not found.
 
You didn't define it in your code anywhere
I don't know what do you mean by "help".
Use this:
 
1:45 PM
@Vic I did ;D :)
 
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.
 
@Vic Oh, I just found why it ain't workin' and fixed it. It was because my code was supposed to deal with when the part after tb was tb help ..., and that's why my entire help system broke down. But the thing could only be something like help ... ;D :)
tb help wake
 
@TechExpertWizard The command you want to look up does not exist.
 
tb help alive
 
1:49 PM
@TechExpertWizard The command you want to look up does not exist.
 
@Vic Um, help again? Here's my code right now.
def run(command):
    if command == 'alive':
        return "No need to worry, I'm alive."
    elif command == 'coffee':
        return 'Brewing a cup of '+random.choice(['black','latte','cappucino','americano','espresso','doppio','cortado','red eye','galão','lungo','macchiato','mocha','ristretto','flat white','affogato','café au lait','iced','iced espresso','cold brew','frappuccino','nitro','mazagran'])+' coffee.'
    elif command == 'hi':
        return 'Hi!'
    elif command == 'hello':
        return 'Hello!'
 
elif command.startswith('help '): ⇒ elif command.startswith('man '):
for example
it's 'cause you use the same name ;D
 
@Vic Huh? Oh, didn't notice that, thx
@Vic Um, what? I didn't write that ;D :)
 
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.
 
@Vic Found the problem, but the problem seems to not be the problem you highlighted, which doesn't seem to even exist. I mean, no offence, but ;D :)
tb help wake
 
1:53 PM
@TechExpertWizard Wakes another user by pinging them. Syntax: tb wake user
 
tb help alive
 
@TechExpertWizard A command to see whether the bot is there. Syntax: tb alive
 
tb help help
 
@TechExpertWizard Shows information about the chat bot, or about a specific command. Syntax: tb help [ command ]
 
1:55 PM
@TechExpertWizard Hello! I'm Tech BOT, and my owner is Tech Expert Wizard. You can get a list of all commands by running tb list, or you can run tb help command to learn more about a specific command.
 
tb say something
 
@TechExpertWizard Command not found.
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.
 
tb say something
 
@TechExpertWizard something
 
tb help say
 
1:57 PM
@TechExpertWizard Repeats what you said back at you. Syntax: tb say something
 
tb alive
tb coffee
tb hi
tb hello
tb help
tb say
tb wake
 
tb help list
 
@TechExpertWizard Returns a list of all commands. Syntax: tb listcommands
 
 
1 hour later…
3:03 PM
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.
 
@Vic Wanna play with my chatbot? @Ann What can your chatbot do now?
 
3:20 PM
@Vic Doesn't seem like you're here yet ;D :)
 
I am here
 
@Vic Whoops, you ain't there when I said that, seems like you just got here ;D :)
 
shrug I was here.
 
@Vic I'm going to start my chatbot ;)
 
And I am here.
 
3:21 PM
@Vic OK, I dunno, but lemme start my chatbot ;) However, warning, it may not function exactly the way you want it to 'cause it's under maintenance repairs right now ;D :)
 
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.
 
@Vic Let's play with my chatbot!
tb wake Vic
tb say something
@Vic Wake up!
 
3:43 PM
Hello! I'm Tech BOT, and my owner is Tech Expert Wizard.
 
@TechExpertWizard I guess I have time to work on it now :)
 
Hi everyone!
 
hi
 
Hi!
 
It can detect my id to only reply to me.
 
3:49 PM
Hiya!
 
It will speak whenever I speak.
 
@AnnZ But it's not fair that it can only reply to you ;) Chatbots are supposed to be for everyone.
 
Hey!
 
I'll give you access to it when I'm done :)
 
What's up?
 
3:51 PM
nothing much
 
What's up?
 
see above ^
 
Hiya!
 
hi
 
What's up?
 
3:51 PM
@AnnZ OK, sure. Oh, yes, I should start thinkin' about givin' people access, since only professional chatbots have restricted access, and I want to make a professional chatbot ;)
@AnnZ But I think you should start thinkin' 'bout using replies instead of just simply sending a message. Lemme show you how to reply ;)
@AnnZ Are you there?
 
yeah
 
What's up?
 
@AnnZ ohk, I'll show you how. Just do event.message.reply('something') to reply ;)
2
 
thanks
 
What's up?
 
00:00 - 16:0016:00 - 00:00

« first day (1 day earlier)      last day (351 days later) »