forked from ChrisChrome/weather-bot
Updated Readme for a slight issue with Sodium on Windows. Also Changed a Note in Index.js
This commit is contained in:
parent
5e6a4388bb
commit
cb5ac958a3
|
@ -3,6 +3,8 @@
|
|||
## Warning
|
||||
This is SUPER tossed together. Might bother cleaning it up later.
|
||||
|
||||
Also If you run this on Windows for Debugging, Sodium might have a few issues installing with MSVS for certain users.
|
||||
|
||||
## What is this?
|
||||
This is meant to be a public Discord bot. It connects via XMPP to Weather.IM and allows server owners to subscribe a channel to any number of weather alerts.
|
||||
|
||||
|
|
2
index.js
2
index.js
|
@ -1037,7 +1037,7 @@ discord.on("interactionCreate", async (interaction) => {
|
|||
}
|
||||
break;
|
||||
|
||||
case "leave": // Leave broadcastify stream
|
||||
case "leave": // Leaves Channel
|
||||
if (!interaction.inGuild()) return interaction.reply({ content: "This command can only be used in a guild", ephemeral: true });
|
||||
channel = interaction.member.voice.channel;
|
||||
if (!channel) return interaction.reply({ content: "You need to be in a voice channel", ephemeral: true });
|
||||
|
|
Loading…
Reference in a new issue