puyoxyz / announcer Goto Github PK
View Code? Open in Web Editor NEWDiscord bot for announcing stuff in embeds.
License: BSD 2-Clause "Simplified" License
Discord bot for announcing stuff in embeds.
License: BSD 2-Clause "Simplified" License
allow announcing images like putting images in the embed by attaching an image.
On Discord for iOS when you try to announce something, and use --everyone or --here it turns into —everyone or —here, where the two dashes merge and form a different character, therefore meaning that the bot will announce
—everyone Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam tempor magna id mauris vulputate commodo.
And will not ping everyone, please fix this as it is extremely annoying!
As of right now, when you send the command, the bot announces in the channel you're sending it in. It should be possible to do something like announcer:announce --everyone --channel #announcements Announcement text here!!!!! so that you can do the actual command in a private channel.
/home/runner/announcer-1/main.js:26
if (!message.member.roles.find(r => r.name === config.bot.allowedRoleName)) return; // Stop running command if user doesn't have unb-mod
^
TypeError: Cannot read property 'roles' of null
at Client. (/home/runner/announcer-1/main.js:26:29)
at Client.emit (events.js:314:20)
at MessageCreateHandler.handle (/home/runner/announcer-1/node_modules/discord.js/src/client/websocket/packets/handlers/MessageCreate.js:9:34)
at WebSocketPacketManager.handle (/home/runner/announcer-1/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:105:65)
at WebSocketConnection.onPacket (/home/runner/announcer-1/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)
at WebSocketConnection.onMessage (/home/runner/announcer-1/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17)
at WebSocket.onMessage (/home/runner/announcer-1/node_modules/ws/lib/event-target.js:120:16)
at WebSocket.emit (events.js:314:20)
at Receiver.receiverOnMessage (/home/runner/announcer-1/node_modules/ws/lib/websocket.js:789:20)
at Receiver.emit (events.js:314:20
===========================================
config file- (i hided TOKEN)
const config = {
bot: {
prefix: 'dh!', // Put the prefix you want commands to start with here
token: '#################################################', // Put your Discord Bot Token here
gameName: 'discord.gg/freenitros', // Put the playing status you want here
allowedRoleName: 'DhBot' // Put the name of the role you want to be able to use the bot here. You can't put "@everyone", that won't work.
},
configVersion: '3' //Don't change this!
}
module.exports = config;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.