1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +00:00

Add temporary m

This commit is contained in:
Steffo 2018-11-08 23:41:41 +01:00
parent ef896ed3dc
commit fab827b032

View file

@ -325,7 +325,8 @@ class RoyalDiscordBot(discord.Client):
"!yes": self.null, "!yes": self.null,
"!no": self.null, "!no": self.null,
"!pause": self.cmd_pause, "!pause": self.cmd_pause,
"!resume": self.cmd_resume "!resume": self.cmd_resume,
"!m": self.cmd_m
} }
self.video_queue: typing.List[Video] = [] self.video_queue: typing.List[Video] = []
self.now_playing = None self.now_playing = None
@ -738,6 +739,26 @@ class RoyalDiscordBot(discord.Client):
await channel.send(f"✅ Video aggiunto alla coda.") await channel.send(f"✅ Video aggiunto alla coda.")
logger.debug(f"Added ytsearch:{search} to the queue as YouTube search.") logger.debug(f"Added ytsearch:{search} to the queue as YouTube search.")
@command
async def cmd_m(self, channel, author, params):
await self.add_video_from_file("./opusfiles/m/1.opus")
await self.add_video_from_file("./opusfiles/m/2.opus")
await self.add_video_from_file("./opusfiles/m/3.opus")
await self.add_video_from_file("./opusfiles/m/4.opus")
await self.add_video_from_file("./opusfiles/m/5.opus")
await self.add_video_from_file("./opusfiles/m/6.opus")
await self.add_video_from_file("./opusfiles/m/7.opus")
await self.add_video_from_file("./opusfiles/m/8.opus")
await self.add_video_from_file("./opusfiles/m/9.opus")
await self.add_video_from_file("./opusfiles/m/a.opus")
await self.add_video_from_file("./opusfiles/m/b.opus")
await self.add_video_from_file("./opusfiles/m/c.opus")
await self.add_video_from_file("./opusfiles/m/d.opus")
await self.add_video_from_file("./opusfiles/m/e.opus")
await self.add_video_from_file("./opusfiles/m/f.opus")
await self.add_video_from_file("./opusfiles/m/g.opus")
await channel.send(f"?")
@command @command
@requires_connected_voice_client @requires_connected_voice_client
async def cmd_skip(self, channel: discord.TextChannel, author: discord.Member, params: typing.List[str]): async def cmd_skip(self, channel: discord.TextChannel, author: discord.Member, params: typing.List[str]):