Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![banner](https://user-images.githubusercontent.com/43201383/72987537-89830a80-3e25-11ea-95ef-ecfa0afcff7e.png)

<p align="center">
<a href="https://github.com/RedCokeDevelopment/Teapot.py/blob/dev/LICENSE"><img src="https://img.shields.io/github/license/redcokedevelopment/teapot.py.svg?style=flat-square" alt="GitHub License"></a>
<a href="https://github.com/RedCokeDevelopment/Teapot.py/blob/master/LICENSE"><img src="https://img.shields.io/github/license/redcokedevelopment/teapot.py.svg?style=flat-square" alt="GitHub License"></a>
<a href="https://github.com/RedCokeDevelopment/Teapot.py/issues"><img src="https://img.shields.io/github/issues/redcokedevelopment/teapot.py.svg?color=purple&style=flat-square" alt="GitHub Issues"></a>
<a href="https://github.com/RedCokeDevelopment/Teapot.py/pulls"><img src="https://img.shields.io/github/issues-pr/redcokedevelopment/teapot.py.svg?color=purple&style=flat-square" alt="GitHub Pull Requests"></a>
<a href="https://github.com/RedCokeDevelopment/Teapot.py/stargazers"><img src="https://img.shields.io/github/stars/redcokedevelopment/teapot.py.svg?style=flat-square" alt="GitHub Stars"></a>
Expand Down Expand Up @@ -56,4 +56,4 @@ These are the requirements for the bot, and they will be bundled in future relea
## 💛 Credits
The projects listed in below have provided inspiration, and we thought we'd mention them:

- LavaLink: https://github.com/Frederikam/Lavalink
- LavaLink: https://github.com/Frederikam/Lavalink
7 changes: 6 additions & 1 deletion teapot/cogs/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,15 @@ async def pause(self, ctx):
await ctx.send('⏯ | Paused')

@commands.command(aliases=['vol'])
async def volume(self, ctx, volume: int = None):
async def volume(self, ctx, volume):
""" Changes the player's volume (0-1000). """
player = self.bot.lavalink.players.get(ctx.guild.id)

try:
volume = int(volume)
except:
volume = int(volume[:-1])

if not volume:
return await ctx.send(f'🔈 | {player.volume}%')

Expand Down
11 changes: 9 additions & 2 deletions teapot/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,15 @@ async def on_message(message):
@bot.event
async def on_message(message):
# SAO Easter Egg
if message.content.lower().startswith("system call "):
content = message.content[12:].split(" ")
punctuations = '!()-[]{};:\'"\\,<>./?@#$%^&*_~'
# remove punctuation from the string
msg = ""
for char in message.content.lower():
if char not in punctuations:
msg = msg + char

if msg.startswith("system call "):
content = msg[12:].split(" ")
if content[0].lower() == "inspect":
if content[1].lower() == "entire":
if content[2].lower() == "command":
Expand Down