コード例 #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
ファイル: quotes.py プロジェクト: synthomat/pealbot
	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
ファイル: playing_maps.py プロジェクト: magnusboman/nimbus
 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
ファイル: player_stats.py プロジェクト: Electroid/nimbus
 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
ファイル: ball8.py プロジェクト: magnusboman/nimbus
 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
ファイル: coinflip.py プロジェクト: andrgorr/nimbus
 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
ファイル: ping.py プロジェクト: magnusboman/nimbus
 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
ファイル: uptime.py プロジェクト: magnusboman/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']
コード例 #11
0
ファイル: playing_maps.py プロジェクト: andrgorr/nimbus
 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
ファイル: mcping.py プロジェクト: magnusboman/nimbus
 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
ファイル: mcskin.py プロジェクト: magnusboman/nimbus
 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
ファイル: testplugin.py プロジェクト: synthomat/pealbot
	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
ファイル: mc_name_history.py プロジェクト: andrgorr/nimbus
 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
ファイル: mojang_status.py プロジェクト: andrgorr/nimbus
 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
ファイル: mcname.py プロジェクト: Electroid/nimbus
 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
ファイル: mcstatus.py プロジェクト: Electroid/nimbus
 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
ファイル: player_stats.py プロジェクト: andrgorr/nimbus
 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']