diff --git a/images/smudge.png b/images/smudge.png new file mode 100644 index 0000000..ae3de0e Binary files /dev/null and b/images/smudge.png differ diff --git a/r0b3bot.py b/r0b3bot.py index c23fec5..ee3cd24 100644 --- a/r0b3bot.py +++ b/r0b3bot.py @@ -95,6 +95,15 @@ async def holyshit(ctx): ### +# +# Image Commands +# +@bot.command() +async def smudge(ctx): + print(" - Uploading Smudge to chat channel") + file = discord.File("./images/smudge.png", filename="smudge.png") + await ctx.send(file=file) + # # Voice Commands # @@ -417,12 +426,17 @@ async def updateStatus(): # Try to get the % of Completion print_completion = round(octoapi.get_completion(), 2) except: - print_completion = "Unknown" + print_completion = 999 unknowns += 1 #Set the activity to the new percent complete value - activity = discord.Activity(name=f"3D Print @ {str(print_completion)}%",type=discord.ActivityType.watching) + if print_completion != 999: + activity = discord.Activity(name=f"3D Print @ {str(print_completion)}%",type=discord.ActivityType.watching) + else: + activity = discord.Activity(name=f"3D Print @ ERROR",type=discord.ActivityType.watching) + await bot.change_presence(activity=activity) + if (unknowns >= 5): break await asyncio.sleep(30) diff --git a/sounds/Awww_Bitch.mp3 b/sounds/Awww_Bitch.mp3 new file mode 100644 index 0000000..c744a4b Binary files /dev/null and b/sounds/Awww_Bitch.mp3 differ