client.send_message(message.channel,'{} has the following aliases: {}'.format(username,byteify(', '.join(aliases))))
client.send_message(message.channel,'{} has the following aliases: {}'.format(byteify(username),byteify(', '.join(aliases))))
else:
client.send_message(message.channel,'No known alises for {} yet {}'.format(username,message.author.mention()))
client.send_message(message.channel,'No known alises for {} yet {}'.format(byteify(username),message.author.mention()))
else:
client.send_message(message.channel,'I don\'t know who you are speaking of {}!'.format(message.author.mention()))
return
ifmessage.content.startswith('!addalias'):
alias=message.content[10:]
defdo_addalias(client,message_parts,message):
alias=' '.join(message_parts)
username=message.author.name.lower()
member=data.db_get_member(username=username)
ifmember:
...
...
@@ -321,17 +338,28 @@ Stuff:
client.send_message(message.channel,'Something horrible happened and it is all your fault, try logging out / on again or play a game. (or fuck off i dunno i\'m just an error message. Who am I to tell you how to run your life...)')
*Long ago, the Vile God and the Goddess waged war with each other. Equally matched, they were sealed away in another world… Now a lazy young man named Fang somehow finds himself a key part of this war he’d really rather not deal with, but fate beckons in this uncommon RPG!*
*Lightning Returns is the concluding chapter of the Final Fantasy XIII saga and series heroine Lightning's final battle. The grand finale of the trilogy brings a world reborn as well as free character customization and stunning action based battles.*
You will be contacted if you win. To win you must purchase tickets with the !buyticket command for 100 credits.
You can get extra credits by playing !slots <amount> and !bet <amount> on BlackJack.
...
...
@@ -465,7 +495,8 @@ You can get extra credits by playing !slots <amount> and !bet <amount> on BlackJ
**Disclaimer:** *If anything should go wrong you get no refund and there is no guarantee or warrantee on anything. 1 prize per person no matter how many tickets you have.*
""")
return
ifmessage.content.startswith('!buyticket'):
defdo_buyticket(client,message_parts,message):
member=data.db_get_member(message.author.id)
ifnotmember:
client.send_message(message.author,"There was a problem looking up your information.")
...
...
@@ -479,7 +510,7 @@ You can get extra credits by playing !slots <amount> and !bet <amount> on BlackJ
log('Someone is talking to %s'%(client.user.name.lower(),))
if' or 'inmessage.content:
questions=message.content[len(client.user.name)+1:].replace('?','').split(' or ')
client.send_message(message.channel,'{} I choose: {}'.format(message.author.mention(),random.choice(questions).encode('utf-8',errors='ignore')))
ifmessage.content.startswith('!secret'):
client.send_message(message.channel,'git gud {}! My source is here: http://git.savsoul.com/barry/discordbot\nVersion: {}'.format(message.author.mention(),VERSION))