Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
70b721b40f | ||
|
|
a80f62f8d4 | ||
|
|
a9efb888bd | ||
|
|
59fdac5803 | ||
|
|
64173df84d | ||
|
|
5859bbdac8 | ||
|
|
5b6555b8da | ||
|
|
0e287c369d | ||
|
|
98f7ced3bf | ||
|
|
dce4303ca1 | ||
|
|
1153d1919c | ||
|
|
499d86459b | ||
|
|
c053b58733 | ||
|
|
e018cfa05b | ||
|
|
9f58177559 | ||
|
|
58e1781397 | ||
|
|
f08eb06db4 | ||
|
|
fa38734869 | ||
|
|
66ed4fd4d1 | ||
|
|
c528e0f638 | ||
|
|
41b1c73ff3 | ||
|
|
b1d1a7b1cc | ||
|
|
8bb132be24 | ||
|
|
15d0a01dcb | ||
|
|
ad05b2f427 | ||
|
|
2cbaef99c0 | ||
|
|
a53cab8343 | ||
|
|
e00da20870 | ||
|
|
45d8d5702c | ||
|
|
86e7944837 | ||
|
|
e9a2165f78 | ||
|
|
9421b22cff | ||
|
|
5767d2d606 | ||
|
|
3b5ecf4b6b | ||
|
|
d961698d40 | ||
|
|
37e9512d82 | ||
|
|
5e1164d98c | ||
|
|
1e64e992dd | ||
|
|
667126c916 | ||
|
|
5ada6cfb36 | ||
|
|
b6d5ce6836 | ||
|
|
0077f1a80b | ||
|
|
dfa82dbe96 | ||
|
|
ba014f4c98 | ||
|
|
6823161897 | ||
|
|
fcb0051c87 | ||
|
|
403aa9a362 | ||
|
|
8d91336b43 | ||
|
|
25abfb2a59 | ||
|
|
3f9a976742 | ||
|
|
8f41991a3d | ||
|
|
1785162cea | ||
|
|
0207424d32 | ||
|
|
ab7009e43f | ||
|
|
5c0e61d466 | ||
|
|
2cabbbf6f1 | ||
|
|
803e8d552d | ||
|
|
0950092f6d | ||
|
|
f6e15d9c35 | ||
|
|
5b917e032f | ||
|
|
7628f8d1ae | ||
|
|
1e496efbee | ||
|
|
0cf348570b | ||
|
|
55419dbafb | ||
|
|
cf3757ce11 | ||
|
|
4cf45b2684 | ||
|
|
544f7b5833 | ||
|
|
fa2a34c951 | ||
|
|
affbf366a1 | ||
|
|
4056f60cd8 | ||
|
|
a7a36f123c | ||
|
|
6865041707 | ||
|
|
520758e2f2 | ||
|
|
cd74624747 | ||
|
|
ccb260c3f9 |
No files matched your search
+47
-15
@@ -268,6 +268,20 @@ async def iran(ctx, member : discord.Member="NONE"):
|
||||
async def big(ctx, member : discord.Member="NONE"):
|
||||
await play_sound(ctx, member, "./sounds/big.mp3", "$big", 4)
|
||||
|
||||
@bot.command()
|
||||
@commands.cooldown(rate=1, per=10.0, type=commands.BucketType.user)
|
||||
async def breee(ctx, member : discord.Member="NONE"):
|
||||
await ctx.send(f"\m/ ( ゚Д゚)<BREEEEE!! \m/")
|
||||
await play_sound(ctx, member, "./sounds/wbbwb_metal.mp3", "$breee", 4)
|
||||
|
||||
@bot.command()
|
||||
@commands.cooldown(rate=1, per=10.0, type=commands.BucketType.user)
|
||||
async def nice(ctx, member : discord.Member="NONE"):
|
||||
await ctx.send(f"\m/ ( ゚Д゚)<N!CE! \m/")
|
||||
await play_sound(ctx, member, "./sounds/wbtbwb-nice.mp3", "$nice", 4)
|
||||
|
||||
|
||||
|
||||
@bot.command()
|
||||
@commands.cooldown(rate=1, per=10.0, type=commands.BucketType.user)
|
||||
async def rs(ctx, member : discord.Member="NONE"):
|
||||
@@ -594,7 +608,7 @@ async def info(ctx):
|
||||
embed.add_field(name="Uptime [WW:DD:HH:MM:SS]:", value=f"{week:02d}:{day:02d}:{hour:02d}:{minute:02d}:{second:02d}", inline=False)
|
||||
|
||||
print("Getting git describe data to display as version in info embed")
|
||||
bot_version = await run('git describe')
|
||||
bot_version = await run('git describe --tags')
|
||||
embed.add_field(name="Version:", value=f"{bot_version}", inline=False)
|
||||
|
||||
# Gitlab link to source
|
||||
@@ -1100,11 +1114,12 @@ async def get_mmr_status(mmrhandle):
|
||||
mmrhandle.replace(" ", "%20")
|
||||
mmrURL = ''.join(mmrURLBASE) + mmrhandle
|
||||
response = requests.get(mmrURL, headers=mmrHEADERS)
|
||||
mmr_stats = json.loads(response.text)
|
||||
|
||||
if "error" in mmr_stats:
|
||||
return "handle not found"
|
||||
|
||||
|
||||
try:
|
||||
mmr_stats = json.loads(response.text)
|
||||
except ValueError as e:
|
||||
return "handle not found"
|
||||
|
||||
return mmr_stats['ranked']['avg']
|
||||
|
||||
async def MMR_Monitor():
|
||||
@@ -1183,31 +1198,44 @@ async def MMR_Monitor():
|
||||
#
|
||||
#
|
||||
|
||||
@bot.command()
|
||||
async def commands(ctx):
|
||||
# Redirect to the 'help' command
|
||||
await help(ctx)
|
||||
|
||||
@bot.command()
|
||||
async def help(ctx):
|
||||
embed = discord.Embed(title='R0b3BOT Core & Debug Commands:', description="Core commands for info and debug", color=0xeee657)
|
||||
embed = discord.Embed(title='Core & Debug Commands:', description="Core commands for info and debug", color=0xeee657)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}info", value="Gives a little info about the bot", inline=False)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}help", value="Gives this message", inline=False)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}last_error", value="Will display the real error message the bot has last encountered for additional debugging info")
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}greetings", value="Gives a nice greeting message", inline=False)
|
||||
await ctx.send(embed=embed)
|
||||
|
||||
embed = discord.Embed(title="R0b3BOT Sound Commands", description="To play a sound in a chat channel, use one of the following:", color=0xeee657)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}printstat", value="Uploads a snapshot of Rich's 3D printer and current stats", inline=False)
|
||||
embed = discord.Embed(title="GIF Commands", description="Commands to call up a GIF image", color=0xeee657)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}explain", value="Displays Dalek EXPLAIN gif", inline=False)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}holyshit", value="Displays Marty McFly HOLY SHIT gif", inline=False)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}greetings", value="Gives a nice greet message", inline=False)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}cat", value="Gives a cute cat gif to lighten up the mood.", inline=False)
|
||||
await ctx.send(embed=embed)
|
||||
|
||||
embed = discord.Embed(title="Sound Commands", description="To play a sound in a chat channel, use one of the following:", color=0xeee657)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}aww @member", value="Plays Rick & Morty clip 'Awww bitch'", inline=False)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}bitch @member", value="Plays clip of BigEric420 saying 'maybe you shouldn't be such a bitch.mp3'", inline=False)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}big @member", value="Plays 'Wiz Khalifa clip'", inline=False)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}bitch @member", value="Plays sound clip of @BigEric420", inline=False)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}boom @member", value="Plays 'Boom Bitch' sound clip", inline=False)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}breee @member", value="Plays 'BREEEEE' clip from a WBTBWB song", inline=False)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}cowbell @member", value="Plays 'SNL More Cowbell' sound clip", inline=False)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}eia @member", value="Plays 'Everything is Awesome' song clip", inline=False)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}heavy @member", value="Plays 'Poppy ooo heavy'", inline=False)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}iran @member", value="Plays Trump 'I Ran'", inline=False)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}leeroy @member", value="Plays Leeeerrroooyyy Jenkins clip", inline=False)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}nice @member", value="Plays clip from WBTBWB - Nice!", inline=False)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}oops @member", value="Plays 'Oops.mp3'", inline=False)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}promoted @member", value="Plays Battlefield Friends 'PROMOTED!' sound clip", inline=False)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}trololo @member", value="Plays a clip of Trololo song", inline=False)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}leeroy @member", value="Plays Leeeerrroooyyy Jenkins clip", inline=False)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}eia @member", value="Plays 'Everything is Awesome' song clip")
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}heavy @member", value="Plays 'Poppy ooo heavy'")
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}iran @member", value="Plays Trump 'I Ran'")
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}big @member", value="Plays 'Wiz Khalifa clip'")
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}wow @member", value="Plays clip of Owen Wilson saying 'Woooow'", inline=False)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}yaw @member", value="Plays clip of Busta Ryhmes 'Yaw Yaw Yaw'", inline=False)
|
||||
await ctx.send(embed=embed)
|
||||
|
||||
embed = discord.Embed(title="A note about sound clips:", description="Sound clips are only played in voice channels. If a user is not specified when calling the command, the sound will played in the channel of that issuing user is currently joined to. When a username is specified, the bot will play the sound in the channel that user is currently in.")
|
||||
@@ -1223,6 +1251,10 @@ async def help(ctx):
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}mmrsub handle", value="Subscribe to receive alerts of ranked average changes for the specified handle. Can run command with just '-list' to list handle the current channel is subbed to. Use -del:service to unsub from a handle. NOTICE:Replace spaces in service names w/ '_'!")
|
||||
await ctx.send(embed=embed)
|
||||
|
||||
embed = discord.Embed(title="3D Printer Status", color=0xeee657)
|
||||
embed.add_field(name=f"{BOT_COMMAND_PREFIX}printstat", value="Uploads a snapshot of Rich's 3D printer and current stats", inline=False)
|
||||
await ctx.send(embed=embed)
|
||||
|
||||
# Function to run shell command and return stdout or sterr
|
||||
async def run(cmd):
|
||||
proc = await asyncio.create_subprocess_shell(
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user