Skip to content
This repository has been archived by the owner on Feb 26, 2018. It is now read-only.

Commit

Permalink
Merge pull request #36 from Perpetucake/master
Browse files Browse the repository at this point in the history
Disable !image, API shutdown
  • Loading branch information
Remco authored and Remco committed Dec 2, 2015
2 parents 4f807cb + ffe8bbe commit dc1edea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ More info can be found on DougleyBot's wiki, or on the [site.](http://steamingmu
# If you're not very technical
**For the sake of decentralisation, consider using your own copy of DougleyBot.**

If you plan on just using DougleyBot as a chatbot, and don't plan on using the files, you can make DougleyBot join your server via DougleyBot's Test server (https://discord.gg/0cFoiR5QVh57Spqg). Use `!join-server <instant-invite>` to make DougleyBot join your server.
If you plan on just using DougleyBot as a chatbot, and don't plan on using the files, you can make DougleyBot join your server via DougleyBot's Test server (https://discord.gg/0cFoiR5QVh57Spqg). Use `!join-server DougleyBot <instant-invite>` to make DougleyBot join your server.
**Note** that admin restricted commands, like `!pullanddeploy`, `!online` and `!idle`, don't work on this instance.

# Contributing
Expand Down
21 changes: 11 additions & 10 deletions discord_bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ var youtube_plugin = new yt();
var min = 1;
var max = 671;

var gi = require("./google_image_plugin");
var google_image_plugin = new gi();
//Broken, requires rewrite through Google Custom Search
//var gi = require("./google_image_plugin");
//var google_image_plugin = new gi();

// Get the email and password
var AuthDetails = require("./auth.json");
Expand Down Expand Up @@ -303,14 +304,14 @@ var commands = {
console.log("The playing status has been refreshed");
}
},
"image": {
usage: "<image tags>",
description: "Gets image matching tags from Google.",
process: function(bot,msg,suffix){
google_image_plugin.respond(suffix,msg.channel,bot);
console.log("I've looked for images of " + suffix + " for " + msg.sender);
}
},
// "image": {
// usage: "<image tags>",
// description: "Gets image matching tags from Google.",
// process: function(bot,msg,suffix){
// google_image_plugin.respond(suffix,msg.channel,bot);
// console.log("I've looked for images of " + suffix + " for " + msg.sender);
// }
// },
"pullanddeploy": {
description: "Bot will perform a git pull master and restart with the new code.",
adminOnly: true,
Expand Down

0 comments on commit dc1edea

Please sign in to comment.