client.send_message(message.channel,'{} stop fucking around with those stupid numbers...'.format(message.author.mention()))
return
defdo_addalias(client,message_parts,message):
alias=' '.join(message_parts)
username=message.author.name.lower()
member=data.db_get_member(username=username)
ifmember:
data.db_add_aliases(member['member_id'],alias)
client.send_message(message.channel,'{} has been added to your aliases'.format(byteify(alias)))
else:
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...)')
return
ifcount>100:
client.send_message(message.channel,'{} 100 is the largest number of dice I will roll.'.format(message.author.mention()))
return
roll_results=[]
foriinrange(count):
roll_results.append(random.randint(1,dice))
out_string='{} your roll {}d{}: {} = {}'.format(message.author.mention(),count,dice,'+'.join(str(r)forrinroll_results),sum(roll_results))
client.send_message(message.channel,'Below is a list of people who have played {} and the number of times they have launched the game:'.format(byteify(game_name),))
client.send_message(message.channel,'{} has the following aliases: {}'.format(username,byteify(', '.join(aliases))))
else:
client.send_message(message.channel,'No known alises for {} yet {}'.format(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:]
username=message.author.name.lower()
member=data.db_get_member(username=username)
ifmember:
data.db_add_aliases(member['member_id'],alias)
client.send_message(message.channel,'{} has been added to your aliases'.format(byteify(alias)))
else:
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...)')
client.send_message(message.channel,'Below is a list of people who have played {} and the number of times they have launched the game:'.format(byteify(game_name),))
*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.
**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'):
member=data.db_get_member(message.author.id)
ifnotmember:
client.send_message(message.author,"There was a problem looking up your information.")
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))