Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RhinosF1 authored Aug 5, 2019
1 parent fe98c06 commit aae856e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ def on_message(bot, channel, sender, message):
bot.send_message(sender, 'Rebuilt')
bot.set_nick(nick)
if message.lower().startswith('!wmca') and cashortbot == 1:
user = message[:4]
user = message[4:]
bot.send_message(channel, sender + ': https://meta.wikimedia.org/wiki/Special:CentralAuth/' + user)
if message.lower().startswith('!mhca') and cashortbot == 1:
user = message[:4]
user = message[4:]
bot.send_message(channel, sender + ': https://meta.miraheze.org/wiki/Special:CentralAuth/' + user)


Expand Down Expand Up @@ -321,10 +321,10 @@ def on_pm(bot, sender, message):
bot.send_message(sender, 'Rebuilt')
bot.set_nick(nick)
if message.lower().startswith('wmca') and cashortbot == 1:
user = message[:4]
user = message[4:]
bot.send_message(sender, sender + ': https://meta.wikimedia.org/wiki/Special:CentralAuth/' + user)
if message.lower().startswith('mhca') and cashortbot == 1:
user = message[:4]
user = message[4:]
bot.send_message(sender, sender + ': https://meta.miraheze.org/wiki/Special:CentralAuth/' + user)

getinfo()
Expand Down

0 comments on commit aae856e

Please sign in to comment.