Giter Club home page Giter Club logo

votabot's People

Contributors

zheoni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

votabot's Issues

bot not log in server

i get this error

##########################
/root/bot/wb-poll/index.js:12
const helpEmbed = new Discord.RichEmbed()
^

TypeError: Discord.RichEmbed is not a constructor
at Object. (/root/bot/wb-poll/index.js:12:19)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47

#######################

Bot doesn't catch user's roles update

When an user gains or stop having the "Poll Creator" role, the bot does not pick that up instantly. If I restart the bot it works. I don't know if it is some type of cache and after some minutes it will work properly, but that should not be cached. It should let or stop users from creating polls instantly.

When the bot launches, after a few seconds it shows a error message and stops the bot.

Hello im having an issue. when i use the command node "index.js" the bot says that it has started then it shows the following error message:
Server is online!
/home/runner/VotaBot/node_modules/discord.js/src/client/ClientDataManager.js:81
guild.channels.set(channel.id, channel);
^

TypeError: Cannot read property 'id' of undefined
at ClientDataManager.newChannel (/home/runner/VotaBot/node_modules/discord.js/src/client/ClientDataManager.js:81:36)
at Guild.setup (/home/runner/VotaBot/node_modules/discord.js/src/structures/Guild.js:307:68)
at GuildCreateHandler.handle (/home/runner/VotaBot/node_modules/discord.js/src/client/websocket/packets/handlers/GuildCreate.js:12:15)
at WebSocketPacketManager.handle (/home/runner/VotaBot/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:108:65)
at WebSocketConnection.onPacket (/home/runner/VotaBot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:336:35)
at WebSocketConnection.onMessage (/home/runner/VotaBot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:299:17)
at WebSocket.onMessage (/home/runner/VotaBot/node_modules/ws/lib/event-target.js:120:16)
at WebSocket.emit (events.js:314:20)
at Receiver.receiverOnMessage (/home/runner/VotaBot/node_modules/ws/lib/websocket.js:789:20)
at Receiver.emit (events.js:314:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2021-07-14T09_42_29_326Z-debug.log

I am hosting the bot on repl.it and i have no idea on how node.js works. please someone help me!

New better regex

^!poll\s(((time=\d+([smhd]?\s))?("[^"\n]+"\s?){1,11})|(help)|(examples)|(end\s\d+))$

This is better but may need testing.

Double ' instead of "

If the user inputs < ' > two times (like this '') instead of a single < " > the parsing algorithm doesn't work well.

Improve help command

Looking at the bot logs, many people just don't get how the commands are used. This is not their problem, is mine for not doing help properly. Need a rework to make it more clear.

Bot doesn't create polls

If I try to create a poll or a vote it shows this:
@alexdud3, An error occurred while running the command: TypeError: RichEmbed is not a constructor
You shouldn't ever receive an error like this.
Please contact and then my username.

What do I need to do?

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.