示例#1
0
文件: help.py 项目: andrgorr/nimbus
 def __init__(self, bot):
     CommandPlugin.__init__(self, bot)
     self.triggers = ['help', 'h']
     self.help = 'Lookup information about bot commands'
     self.help_example = ['!help', '!help <command>']
     self.hidden = True
     self.dm_sender = True
示例#2
0
	def __init__(self, context):
		CommandPlugin.__init__(self, context)
		self.file_name = "quotes.txt"
		self.quotes = []
		try:
			self.quotes = open(self.file_name, 'r+').readlines()
		except:
			pass
示例#3
0
 def __init__(self, bot):
     CommandPlugin.__init__(self, bot)
     self.triggers = ['poll', 'vote']
     self.short_help = 'Create a poll'
     self.help = self.short_help
     self.help_example = [
         '!poll What are better, dogs or cats? :cat: :dog:'
     ]
示例#4
0
 def __init__(self, bot):
     CommandPlugin.__init__(self, bot)
     self.triggers = ['playingmaps']
     self.short_help = 'Prints out currently playing maps on the Overcast Network'
     self.help = self.short_help
     self.help_example = ['!playingmaps']
示例#5
0
 def __init__(self):
     CommandPlugin.__init__(self)
     self.triggers = ['player', 'stats']
     self.short_help = 'Lookup Overcast Network player stats'
     self.help = self.short_help
     self.help_example = ['!player Plastix', '!player bcbwilla']
示例#6
0
 def __init__(self, bot):
     CommandPlugin.__init__(self, bot)
     self.triggers = ['8ball']
     self.short_help = 'Ask me a question'
     self.help = 'Ask me a question and I\'ll decide what the answer should be. Based on https://en.wikipedia.org/wiki/Magic_8-Ball'
     self.help_example = ['!8ball Is linux better than windows?']
示例#7
0
 def __init__(self, bot):
     CommandPlugin.__init__(self, bot)
     self.triggers = ['coin', 'coinflip']
     self.short_help = 'Flip a coin'
     self.help = 'Flip a coin or number of coins'
     self.help_example = ['!coin', '!coinflip 5']
示例#8
0
 def __init__(self, bot):
     CommandPlugin.__init__(self, bot)
     self.triggers = ['ping']
     self.short_help = 'Pong!'
     self.help = self.short_help
     self.help_example = ['!ping']
示例#9
0
 def __init__(self, bot):
     CommandPlugin.__init__(self, bot)
     self.triggers = ['isup', 'isonline']
     self.short_help = 'Pings a website to check if it is online'
     self.help = self.short_help
     self.help_example = ['!isup google.com', '!isup oc.tc']
示例#10
0
 def __init__(self, bot):
     CommandPlugin.__init__(self, bot)
     self.triggers = ['uptime']
     self.short_help = 'Prints out the uptime of the bot'
     self.help = self.short_help
     self.help_example = ['!uptime']
示例#11
0
 def __init__(self, bot):
     CommandPlugin.__init__(self, bot)
     self.triggers = ['playingmaps']
     self.short_help = 'Prints out currently playing maps on the Overcast Network'
     self.help = self.short_help
     self.help_example = ['!playingmaps']
示例#12
0
 def __init__(self, bot):
     CommandPlugin.__init__(self, bot)
     self.triggers = ['mcping', 'mcp']
     self.short_help = 'Ping a Minecraft server'
     self.help = self.short_help
     self.help_example = ['!mcping us.oc.tc', '!mcping example.org:1234']
示例#13
0
文件: uptime.py 项目: andrgorr/nimbus
 def __init__(self, bot):
     CommandPlugin.__init__(self, bot)
     self.triggers = ['uptime']
     self.short_help = 'Prints out the uptime of the bot'
     self.help = self.short_help
     self.help_example = ['!uptime']
示例#14
0
 def __init__(self, bot):
     CommandPlugin.__init__(self, bot)
     self.triggers = ['mcskin', 'skin']
     self.short_help = 'Gets the skin for a Minecraft player'
     self.help = self.short_help
     self.help_example = ['!mcskin Plastix', '!skin Apple']
示例#15
0
	def __init__(self, context):
		CommandPlugin.__init__(self, context)
		global starttime
		starttime = datetime.datetime.now()
示例#16
0
 def __init__(self, bot):
     CommandPlugin.__init__(self, bot)
     self.triggers = ['mcskin', 'skin']
     self.short_help = 'Gets the skin for a Minecraft player'
     self.help = self.short_help
     self.help_example = ['!mcskin Plastix', '!skin Apple']
示例#17
0
 def __init__(self, bot):
     CommandPlugin.__init__(self, bot)
     self.triggers = ['mchistory', 'mchis']
     self.short_help = 'Prints out username history of a Minecraft username'
     self.help = self.short_help
     self.help_example = ['!mchistory Apple', '!mchis Martin']
示例#18
0
 def __init__(self, bot):
     CommandPlugin.__init__(self, bot)
     self.triggers = ['mojang', 'mcstatus']
     self.short_help = 'Prints the status of Mojang\'s services'
     self.help = self.short_help
     self.help_example = ['!mojang']
示例#19
0
文件: ver.py 项目: magnusboman/nimbus
 def __init__(self, bot):
     CommandPlugin.__init__(self, bot)
     self.triggers = ['ver', 'version', 'about']
     self.short_help = 'Prints out version information about the bot'
     self.help = self.short_help
     self.help_example = ['!ver']
示例#20
0
文件: mcname.py 项目: andrgorr/nimbus
 def __init__(self, bot):
     CommandPlugin.__init__(self, bot)
     self.triggers = ['mcname']
     self.short_help = 'Checks whether a Minecraft username is available'
     self.help = self.short_help
     self.help_example = ['!mcname Plastix', '!mcname Apple']
示例#21
0
文件: echo.py 项目: Electroid/nimbus
 def __init__(self):
     CommandPlugin.__init__(self)
     self.triggers = ['echo']
     self.short_help = 'Repeat after me'
     self.help = 'Echos back whatever was said'
     self.help_example = ['!echo test']
示例#22
0
 def __init__(self):
     CommandPlugin.__init__(self)
     self.triggers = ['mcname']
     self.short_help = 'Checks whether a Minecraft username is available'
     self.help = self.short_help
     self.help_example = ['!mcname Plastix', '!mcname Apple']
示例#23
0
 def __init__(self, bot):
     CommandPlugin.__init__(self, bot)
     self.triggers = ['8ball']
     self.short_help = 'Ask me a question'
     self.help = 'Ask me a question and I\'ll decide what the answer should be. Based on https://en.wikipedia.org/wiki/Magic_8-Ball'
     self.help_example = ['!8ball Is linux better than windows?']
示例#24
0
文件: ver.py 项目: andrgorr/nimbus
 def __init__(self, bot):
     CommandPlugin.__init__(self, bot)
     self.triggers = ['ver', 'version', 'about']
     self.short_help = 'Prints out version information about the bot'
     self.help = self.short_help
     self.help_example = ['!ver']
示例#25
0
 def __init__(self):
     CommandPlugin.__init__(self)
     self.triggers = ['mojang', 'mcstatus']
     self.short_help = 'Prints the status of Mojang\'s services'
     self.help = self.short_help
     self.help_example = ['!mojang']
示例#26
0
文件: poll.py 项目: javipepe/nimbus
 def __init__(self, bot):
     CommandPlugin.__init__(self, bot)
     self.triggers = ['poll', 'vote']
     self.short_help = 'Create a poll'
     self.help = self.short_help
     self.help_example = ['!poll What are better, dogs or cats? :cat: :dog:']
示例#27
0
 def __init__(self, bot):
     CommandPlugin.__init__(self, bot)
     self.triggers = ['echo']
     self.short_help = 'Repeat after me'
     self.help = 'Echos back whatever was said'
     self.help_example = ['!echo test']
示例#28
0
 def __init__(self, bot):
     CommandPlugin.__init__(self, bot)
     self.triggers = ['mcping', 'mcp']
     self.short_help = 'Ping a Minecraft server'
     self.help = self.short_help
     self.help_example = ['!mcping us.oc.tc', '!mcping example.org:1234']
示例#29
0
 def __init__(self, bot):
     CommandPlugin.__init__(self, bot)
     self.triggers = ['player', 'stats']
     self.short_help = 'Lookup Overcast Network player stats'
     self.help = self.short_help
     self.help_example = ['!player Plastix', '!player bcbwilla']