GithubHelp home page GithubHelp logo

hopsoncommunity / hopsonbot Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 8.0 240 KB

Discord bot for the Hopson Community Server, written using Discord.js

License: MIT License

JavaScript 100.00%
bot discord hopson javascript moderation

hopsonbot's People

Contributors

hazurl avatar hopson97 avatar iciaran avatar jackojc avatar jlagarespo avatar m1ksu avatar oboforty avatar ruixel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hopsonbot's Issues

>8ball command is broken

Calling >8ball command on the bot causes the bot to terminate

Bot.sendMessage(message.channel, "No question given");
^

ReferenceError: Bot is not defined

Nearly no comments in code!

There are almost no comments in the code, making it hard to implement new features since the code is hard to read.

TypeError: Cannot read property 'displayName' of null

TypeError: Cannot read property 'displayName' of null
    at logMessageInfo (/home/hopbot/HopsonBot/src/events/message_sent_handler.js:103:33)
    at MessageSentHandler.handleMessageSent (/home/hopbot/HopsonBot/src/events/message_sent_handler.js:26:9)
    at Client.client.on (/home/hopbot/HopsonBot/src/hopson_bot.js:31:37)
    at Client.emit (events.js:159:13)
    at MessageCreateHandler.handle (/home/hopbot/HopsonBot/node_modules/discord.js/src/client/websocket/packets/handlers/MessageCreate.js:9:34)
    at WebSocketPacketManager.handle (/home/hopbot/HopsonBot/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:103:65)
    at WebSocketConnection.onPacket (/home/hopbot/HopsonBot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)
    at WebSocketConnection.onMessage (/home/hopbot/HopsonBot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17)
    at WebSocket.onMessage (/home/hopbot/HopsonBot/node_modules/ws/lib/event-target.js:120:16)
    at WebSocket.emit (events.js:159:13)

Can just check if it's null first but would rather know what caused it.

User info tool

A tool to display user messages in a graph which shows their message count in each channel.

X axis should be channel name.
Y axis should be message count.

X axis should be sorted in descending order of message count.

To use the bot, the command would be in the form of >graph @user or something similar.

Rough example of such a tool: image

Warning system

Ability to

  • warn
  • list warnings
  • remove warnings

(Default action on x warnings? kick/ban)

Decide how to store warnings.

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.