diff options
author | Stefan Beller <stefanbeller@googlemail.com> | 2011-08-22 12:16:30 +0200 |
---|---|---|
committer | Stefan Beller <stefanbeller@googlemail.com> | 2011-08-22 12:16:30 +0200 |
commit | e2eb4a2717bb2661fc25179b0d054b33964bb979 (patch) | |
tree | ae9e972075a76ff2f721c13f2d98c3c9677e1a91 | |
parent | 191114cfa6774d7024cf392794ffa7fd97ee8ebd (diff) | |
download | manamarket-e2eb4a2717bb2661fc25179b0d054b33964bb979.tar.gz manamarket-e2eb4a2717bb2661fc25179b0d054b33964bb979.tar.bz2 manamarket-e2eb4a2717bb2661fc25179b0d054b33964bb979.tar.xz manamarket-e2eb4a2717bb2661fc25179b0d054b33964bb979.zip |
adding more help messages
-rwxr-xr-x | main.py | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -129,6 +129,10 @@ def process_whisper(nick, msg, mapserv): elif broken_string[0] == "!help": # Sends help information + if int(user.get('accesslevel')) < 0: + mapserv.sendall(whisper(nick, "You seem to be a bood guy, please don't harm me anymore.")) + return + if len(broken_string) == 1: mapserv.sendall(whisper(nick, "Welcome to ManaMarket!")) mapserv.sendall(whisper(nick, "The basic commands for the bot are: !list, !find <id> or <Item Name>, !buy <amount> <uid>, !add <amount> <price> <Item Name>, !money, !relist <uid>, !info, !getback <uid> ")) @@ -138,6 +142,20 @@ def process_whisper(nick, msg, mapserv): mapserv.sendall(whisper(nick, "you would type /whisper ManaMarket !buy 1 6" )) mapserv.sendall(whisper(nick, "This will purchase one of item 6 (Iron Ore).")) + if int(user.get('accesslevel')) >= 5: + mapserv.sendall(whisper(nick, "Ah, you have sellers access level. How lovely!")) # the first words the ticket seller told me when i was in london for the first time. How lovely! + mapserv.sendall(whisper(nick, "Use !add to tell me, I should trade stuff for you:")) + mapserv.sendall(whisper(nick, "e.g. !add 10 1000 IronOre would tell me to sell 10 [@@640|Iron Ore@@] for a price of 1000 gp")) + mapserv.sendall(whisper(nick, "Later you can whisper me !money to get back your money. In the example given, I'd give you 10*1000 = 10000gp")) + elif int(user.get('accesslevel')) == 20: + mapserv.sendall(whisper(nick, "You're my master! How should I serve you?")) + mapserv.sendall(whisper(nick, "!listusers lists all users which have a special accesslevel, e.g. they are blocked, seller or admin")) + mapserv.sendall(whisper(nick, "!setslots <slots> <name> sets the name to use only the given <slots>")) + mapserv.sendall(whisper(nick, "!setaccess <accesslevel> <name> sets access level for the player. -1 is blocked, 5 is seller and 20 is admin" )) + mapserv.sendall(whisper(nick, "!adduser <level> <slots> <name>, whereas level should be 5 for seller, 20 for admin.")) + + + elif len(broken_string) == 2: if broken_string[1] == '!buy': mapserv.sendall(whisper(nick, "!buy <amount> <uid> - Request the purchase of an item or items.")) |