Giter Site home page Giter Site logo

announcer's People

Contributors

puyoxyz avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

announcer's Issues

Add titles/colours

Can you add titles that appear at the top and maybe colours down the side of the embed (in this example it’s purple) Example:
03680562-1242-4C03-A2F4-D483B5896CE3

Announcing on iOS Discord with --everyone and --here

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!

Allow sending in other channels

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.

Showing Error even i have role

/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;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.