Discord Bot
Your station's own bot in your Discord server, for voice channels, commands and the team.
The Discord bot puts your station in your Discord server. It plays the station in voice channels, answers commands such as /nowplaying and /request, shows the song on air in its status, and can post when shows start. It runs inside your Auvyra server, so there is nothing else to host.
Owners and administrators set it up, under Integrations.
Setting it up
- Open the Discord Developer Portal and press New Application. Name it after your station; this is the bot's name in Discord.
- Open Bot, press Reset Token, and copy the token. Treat it like a password.
- In Auvyra, under Integrations, Discord bot, tick Turn on the Discord bot, paste the token, and save. Auvyra checks the token with Discord and stores it encrypted.
- Press Add to a server, which appears once the token is saved, and choose your Discord server.
The bot asks for six permissions and no more: to see channels, send messages, embed links, read message history (to keep its own message up to date), and connect and speak in voice.
The status line at the top of the form says whether the bot is connected, and how many servers it is in. It connects a few seconds after you save.
Commands
Commands appear in your server as soon as the bot joins.
| Command | What it does |
|---|---|
/listen | Plays the station in your voice channel, or one you choose. |
/stop | Stops playing and leaves the voice channel. |
/nowplaying | The song, artist and album art, with buttons to your website, your request page and the song on Spotify. |
/history | The last ten songs. |
/like | Likes the song on air, counted with the likes from your website. |
/schedule | What is on now, and coming up this week. |
/presenters | Your presenters, linked to their pages. |
/poll | Your open poll, with a button for each option. One vote each. |
/remind | A direct message 15 minutes before a show starts. |
/request | Requests a song, with suggestions as you type. |
/shoutout | Sends a shoutout to the presenter. |
Requests, shoutouts, likes and polls follow the switches under Site Builder, Features. Turn one off there and its command says so. Shoutouts go through the same moderation and blocked words as your website's form.
In voice channels
/listen joins the voice channel of whoever typed it. The bot reconnects by itself if your stream drops, and leaves a minute after the last person does.
To keep the bot in one voice channel all day, paste that channel's ID into All-day voice channel ID. It joins when it starts, rejoins after a restart, and /stop leaves it alone.
Voice needs FFmpeg, which Auvyra's Docker image includes.
Posts and the live message
- Posts in a channel. Paste a channel's ID and tick the events you want: a show starting, a live DJ going on air, news or an article being published, or the station going off air.
- Live now-playing channel. The bot keeps one message in this channel up to date with the song on air. If someone deletes the message, it posts a new one.
- The song in the bot's status. "Listening to" the song on air, on by default.
To copy a channel's ID, turn on Developer Mode in Discord (Settings, Advanced), then right-click the channel and choose Copy Channel ID.
The staff channel
Paste a private channel's ID into Staff channel ID, and the bot posts there when a shoutout or a song request arrives, whether it came from your website, the app or Discord.
A shoutout that is waiting for approval has Approve and Hide buttons. Anyone with the Manage Messages permission in that channel can press them, so keep the channel to your team. The Shoutouts page in the dashboard shows the same decision.
If something isn't working
- "Not connected". Discord refused the token, usually because it was reset. Paste the new one.
- The bot joins voice but is silent. Check it has Connect and Speak in that channel.
- No commands appear. Add the bot again with Add to a server; the link includes permission to create commands.
- Reminders don't arrive. The listener's direct messages must be open to members of your server.