Created
April 23, 2019 20:39
-
-
Save LudusLight/4c06dc1028bb7cd2396667ee8b726b8b to your computer and use it in GitHub Desktop.
Generate voice channel video link
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import discord | |
class MyClient(discord.Client): | |
async def on_message(self, message): | |
if message.content == ".vidlink": | |
await message.channel.send("<https://discordapp.com/channels/"+str(message.guild.id)+"/"+str(message.author.voice.channel.id)+">") | |
client = MyClient() | |
client.run('token') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment