Remove Docker fix some voice coms
This commit is contained in:
@@ -1,9 +0,0 @@
|
|||||||
FROM python:3.6
|
|
||||||
|
|
||||||
RUN mkdir /aquabot-docker
|
|
||||||
WORKDIR /aquabot-docker
|
|
||||||
COPY . /aquabot-docker
|
|
||||||
|
|
||||||
RUN pip install --user -r requirements.txt
|
|
||||||
|
|
||||||
CMD ["python3", "aquabot.py"]
|
|
||||||
12
README.md
12
README.md
@@ -13,18 +13,6 @@ guarantee that all features work!
|
|||||||
|
|
||||||
Support and report requests are handled via Discord (Link above).
|
Support and report requests are handled via Discord (Link above).
|
||||||
|
|
||||||
Installation - Docker
|
|
||||||
---------------------
|
|
||||||
|
|
||||||
`WIP!`
|
|
||||||
|
|
||||||
+ Clone this repository with `git clone https://github.com/CramMK/aquabot`
|
|
||||||
|
|
||||||
+ Create a `config` file as described below
|
|
||||||
guideline
|
|
||||||
|
|
||||||
+ Launch the Container
|
|
||||||
|
|
||||||
Installation - pip
|
Installation - pip
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
|||||||
@@ -41,10 +41,10 @@ class Voice(commands.Cog):
|
|||||||
|
|
||||||
if voice and voice.is_connected():
|
if voice and voice.is_connected():
|
||||||
await voice.move_to(channel)
|
await voice.move_to(channel)
|
||||||
await ctx.send(f"`Moved to {channel}!`")
|
await ctx.send(f"Moved to {channel}!")
|
||||||
else:
|
else:
|
||||||
voice = await channel.connect()
|
voice = await channel.connect()
|
||||||
await ctx.send(f"`Joined {channel}!`")
|
await ctx.send(f"Joined {channel}!")
|
||||||
|
|
||||||
|
|
||||||
@commands.command(name="leave", aliases=["quit"])
|
@commands.command(name="leave", aliases=["quit"])
|
||||||
@@ -58,7 +58,7 @@ class Voice(commands.Cog):
|
|||||||
|
|
||||||
if voice and voice.is_connected():
|
if voice and voice.is_connected():
|
||||||
await voice.disconnect()
|
await voice.disconnect()
|
||||||
await ctx.send(f"`Left {channel}!`")
|
await ctx.send(f"Left {channel}!")
|
||||||
# cleanup
|
# cleanup
|
||||||
yt_files = glob.glob("youtube-*")
|
yt_files = glob.glob("youtube-*")
|
||||||
for f in yt_files:
|
for f in yt_files:
|
||||||
@@ -76,7 +76,7 @@ class Voice(commands.Cog):
|
|||||||
voice = get(self.bot.voice_clients, guild=ctx.guild)
|
voice = get(self.bot.voice_clients, guild=ctx.guild)
|
||||||
|
|
||||||
if voice and voice.is_connected():
|
if voice and voice.is_connected():
|
||||||
await ctx.send("`Skipping...`")
|
await ctx.send("Skipping...")
|
||||||
else:
|
else:
|
||||||
await ctx.send("I'm not connected to a channel!")
|
await ctx.send("I'm not connected to a channel!")
|
||||||
|
|
||||||
@@ -99,14 +99,11 @@ class Voice(commands.Cog):
|
|||||||
if not channel:
|
if not channel:
|
||||||
ctx.send("You're not connected to a voice channel!")
|
ctx.send("You're not connected to a voice channel!")
|
||||||
if voice and voice.is_connected():
|
if voice and voice.is_connected():
|
||||||
warning = (
|
await voice.move_to(channel)
|
||||||
"I'm already connected to another channel!\n"
|
await ctx.send(f"Moved to {channel}!")
|
||||||
f"Use `{loadconfig.__prefix__}join` for force-join.\n"
|
|
||||||
)
|
|
||||||
await ctx.send(warning)
|
|
||||||
else:
|
else:
|
||||||
voice = await channel.connect()
|
voice = await channel.connect()
|
||||||
await ctx.send(f"`Joined {channel}!`")
|
await ctx.send(f"Joined {channel}!")
|
||||||
|
|
||||||
|
|
||||||
youtube_dl.utils.bug_reports_message = lambda: ''
|
youtube_dl.utils.bug_reports_message = lambda: ''
|
||||||
@@ -178,8 +175,8 @@ class Voice(commands.Cog):
|
|||||||
player_embed.add_field(name="Song", value=player.title)
|
player_embed.add_field(name="Song", value=player.title)
|
||||||
player_embed.add_field(name="Uploader", value=player.uploader)
|
player_embed.add_field(name="Uploader", value=player.uploader)
|
||||||
|
|
||||||
await ctx.send("`:musical_note: Now playing: `")
|
await ctx.send(":musical_note: Now playing: ")
|
||||||
await ctx.send(player_embed)
|
await ctx.send(embed=player_embed)
|
||||||
|
|
||||||
# End of YouTube Player
|
# End of YouTube Player
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user