GithubHelp home page GithubHelp logo

dougley / dougleybot Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 20.0 10 MB

A Discord bot using discord.js that just works, and does entertaining things.

Home Page: http://steamingmutt.github.io/DougleyBot

License: GNU General Public License v2.0

JavaScript 100.00%

dougleybot's Introduction

dougleybot's People

Contributors

hendrik-sama avatar infinifrog avatar mirrorbreak avatar neighbourjim avatar perpetucake avatar thenamekevinwastaken avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dougleybot's Issues

Make !wiki lists less spammy

Simple way to accomplish this would be to build up to 2000 character msgArray's (similar code already located in DougleyBot Kervin ;) ) and send those instead of separating each new line to a new message (creating many many notifications in Discord, and the potential for massive cross-bot command spam).

A better way may be a complete rewrite, possibly with https://www.npmjs.com/package/node-wikipedia which appears to have more features (but less documentation) than wikijs.

More info in Whois

Add more info to Whois, like last online time, discriminator, assigned roles, etc

Possible upgrade for your use case of csgo-market

I have added an option to disable strict weapon name mode which will attempt to match the closest name of the weapon passed in, so if users using your bot type 'AK 47' instead of 'AK-47' it will still pick up the name and format it correctly for the request.

To disable strict naming simply use this line:

csgomarket.strictNameMode = false;

WolframAlpha is not integrated

The original DiscordBot has a WolframAlpha command, even though that one doesn't work properly, it's nice if the command can be integrated into DougleyBot aswel. (but functional)

Image and gif searching are broken since latest update

When !image or !gif is issued, the bot doesn't know how to handle the request and crashes.

Log output for !gif

get_gif(tags, function(id) {
      ^

ReferenceError: get_gif is not defined
    at Object.Commands.gif.process (C:\Users\super\Documents\GitHub\DougleyBot\commands.js:67:9)
    at Client.<anonymous> (C:\Users\super\Documents\GitHub\DougleyBot\discord_bot.js:121:26)
    at emitOne (events.js:77:13)
    at Client.emit (events.js:169:7)
    at WebSocket.websocket.onmessage (C:\Users\super\Documents\GitHub\DougleyBot\node_modules\discord.js\lib\Client.js:42:591)
    at WebSocket.onMessage (C:\Users\super\Documents\GitHub\DougleyBot\node_modules\discord.js\node_modules\ws\lib\WebSocket.js:414:14)
    at emitTwo (events.js:87:13)
    at WebSocket.emit (events.js:172:7)
    at Receiver.ontext (C:\Users\super\Documents\GitHub\DougleyBot\node_modules\discord.js\node_modules\ws\lib\WebSocket.js:797:10)
    at C:\Users\super\Documents\GitHub\DougleyBot\node_modules\discord.js\node_modules\ws\lib\Receiver.js:473:18

Log output for !image

        this.request("http://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=" + (query.replace(/\s/g, '+')) + "&start=" + page, function(err, res, body) {
                                                                                                ^

TypeError: query.replace is not a function
    at GoogleImagePlugin.respond (C:\Users\super\Documents\GitHub\DougleyBot\google_image_plugin.js:22:90)
    at Object.Commands.image.process (C:\Users\super\Documents\GitHub\DougleyBot\commands.js:165:29)
    at Client.<anonymous> (C:\Users\super\Documents\GitHub\DougleyBot\discord_bot.js:121:26)
    at emitOne (events.js:77:13)
    at Client.emit (events.js:169:7)
    at WebSocket.websocket.onmessage (C:\Users\super\Documents\GitHub\DougleyBot\node_modules\discord.js\lib\Client.js:42:591)
    at WebSocket.onMessage (C:\Users\super\Documents\GitHub\DougleyBot\node_modules\discord.js\node_modules\ws\lib\WebSocket.js:414:14)
    at emitTwo (events.js:87:13)
    at WebSocket.emit (events.js:172:7)
    at Receiver.ontext (C:\Users\super\Documents\GitHub\DougleyBot\node_modules\discord.js\node_modules\ws\lib\WebSocket.js:797:10)

Typing any command that sends an image in private message crashes bot.

Typing any command which is meant to send an image in a private message to the bot instantly causes it to crash. This makes the bot impossible for me to use on my public server without disabling all image commands.

For instance, opening a message with the bot and typing !kappa will crash it. Same with !iff

Discord ID Location

Hi there, really enjoying your bot (had it join our server to test with) but I am trying to setup the config file to create our own version of it and I'm hung up on the part where you enter the admin IDs because I can't find where they are. I checked the FAQ section and found this answer, "That's because you didn't define your Discord ID as a admin, check the config.json file if your ID is defined as a admin." But the problem is that I can't seem to find anywhere that tells me where to find the ID number to put in. Is there any way you could point me in the right direction to find my Discord ID so I can put it in there?

Thank you!

Getting more done in GitHub with ZenHub

Hola! @Perpetucake has created a ZenHub account for the SteamingMutt organization. ZenHub is the leading team collaboration and project management solution built for GitHub.


How do I use ZenHub?

To get set up with ZenHub, all you have to do is download the browser extension and log in with your GitHub account. Once you do, you’ll get access to ZenHub’s complete feature-set immediately.

What can ZenHub do?

ZenHub adds a series of enhancements directly inside the GitHub UI:

  • Real-time, customizable task boards for GitHub issues;
  • Burndown charts, estimates, and velocity tracking based on GitHub Milestones;
  • Personal to-do lists and task prioritization;
  • β€œ+1” button for GitHub issues and comments;
  • Drag-and-drop file sharing;
  • Time-saving shortcuts like a quick repo switcher.

Add ZenHub to GitHub

Still curious? See more ZenHub features or read user reviews. This issue was written by your friendly ZenHub bot, posted by request from @Perpetucake.

ZenHub Board

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.