https://github.com/just-rich/servcaster
A simple Discord bot that sends a predefined message into each server it's in.
https://github.com/just-rich/servcaster
bot discord discord-bot discord-js discord-js-bot discord-message discord-message-sender discord-message-sender-bot discord-msg discord-msg-sender discordbot discordjs discordjs-bot nodejs
Last synced: about 1 month ago
JSON representation
A simple Discord bot that sends a predefined message into each server it's in.
- Host: GitHub
- URL: https://github.com/just-rich/servcaster
- Owner: just-rich
- Created: 2025-04-07T10:21:24.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-04-07T11:41:14.000Z (about 2 months ago)
- Last Synced: 2025-04-13T10:14:36.304Z (about 1 month ago)
- Topics: bot, discord, discord-bot, discord-js, discord-js-bot, discord-message, discord-message-sender, discord-message-sender-bot, discord-msg, discord-msg-sender, discordbot, discordjs, discordjs-bot, nodejs
- Language: JavaScript
- Homepage: https://richw.xyz
- Size: 15.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# ServCaster (Servers Message Broadcast)
A simple bot that sends a predefined message into each server it's in.
### How It Works
- The bot searches for a channel with keywords like **main**, **chat**, **lounge**, etc.
- If no matching channel is found, it falls back to the first channel it has permission to send messages in (in tests, this sometimes ends up being the bottom-most channel).
- The message is logged in the console for each server.### Console Log Statuses
- ✅ **SUCCESS** – Found a channel with a keyword and sent the message.
- 🟡 **GOOD ENOUGH** – No keyword found, but sent the message in a channel it had permissions in.
- ❌ **FAILED** – Couldn’t send the message in any channel.### Installation
1. **Clone or Download the Repo**
If you haven’t already, clone or download the repository to your local machine.```bash
git clone
cd servcaster2. Install dependencies
```bash
npm install### 🔁 Running the Bot
Run `npm run start` or `node index.js` manually whenever you need to broadcast a message (e.g., bot updates or removal notices).> **IMPORTANT:** Don’t forget to **update the message** inside `index.js` before running it, and ensure you’re using the correct bot token.
### 📜 Servers List (`servlist/index.js`)
Lists all servers the bot is in via console logs.
If the bot has permission to create invite links, it will include one next to the server name.## To Do
- If there are 2 channels matching any of the keywords, and bot doesn't have perms to send in the 1st channel matching a keyword, it fails and doesn't think to try to the next channel. This needs fixed.### Author
slapped together by [rich](https://richw.xyz) to notify servers of bot's switching to other applications