Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.

Commit

Permalink
Version 1.5 stable
Browse files Browse the repository at this point in the history
See changelog in changelog.txt!
  • Loading branch information
HerrEurobeat committed Apr 2, 2018
1 parent 88539e3 commit a735f78
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 43 deletions.
12 changes: 0 additions & 12 deletions bin/commands/nick.js

This file was deleted.

6 changes: 0 additions & 6 deletions bin/commands/test.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
module.exports.run = async (bot, message, args) => {
const v = require("../../index.js")

if (message.member.permissions.has("SEND_MESSAGES")) {
console.log("True")
} else {
console.log("False")
}

}

module.exports.config = {
Expand Down
18 changes: 9 additions & 9 deletions bin/help/help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
[ ] - ***optional*** argument

__Help & Test:__
** *help ** - Brings up some help. You are reading it just in this moment. Wow.
** *ping ** - Bot heartbeat and ping.
** /help ** - Brings up some help. You are reading it just in this moment. Wow.
** /ping ** - Bot heartbeat and ping.

__Moderation:__

__Info & User:__
** *info ["bot|user|server"] [mention] ** - Some (useful) information about the bot, the user or/and the server. If you dont provide the infotype you will get the full info.
** *status ("online/on|idle|dnd|invisble/off") ** - Sets the status.
** *userid [mention] ** - Gets the user id from you or the mentioned user.
** *avatar [mention] ** - A link to your or to the mentioned users avatar.
** *servericon ** - A link to the server icon of your current server.
** *setavatar (url) ** - Sets the avatar to the given url or to default.
** *setgame ["playing|streaming|listening|watching"] [name] ** - Sets a custom game activity. If no argument is given the game will be reset.
** /info ["bot|user|server"] [mention] ** - Some (useful) information about the bot, the user or/and the server. If you dont provide the infotype you will get the full info.
** /status ("online/on|idle|dnd|invisble/off") ** - Sets the status.
** /userid [mention] ** - Gets the user id from you or the mentioned user.
** /avatar [mention] ** - A link to your or to the mentioned users avatar.
** /servericon ** - A link to the server icon of your current server.
** /setavatar (url) ** - Sets the avatar to the given url or to default.
** /setgame ["playing|streaming|listening|watching"] [name] ** - Sets a custom game activity. If no argument is given the game will be reset.
6 changes: 3 additions & 3 deletions bin/help/help2.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__Misc:__
** *poll [description] ** - Reacts with 👍 👎 🤷 to your message. A quick way to make a poll in the chat.
** *dice (number) ** - Returns with a random number between 1 and the given number.
** *github ** - Get a link to my GitHub repository.
** /poll [description] ** - Reacts with 👍 👎 🤷 to your message. A quick way to make a poll in the chat.
** /dice (number) ** - Returns with a random number between 1 and the given number.
** /github ** - Get a link to my GitHub repository.
12 changes: 6 additions & 6 deletions bin/help/help3.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
__Fun:__
** *achievement (description) ** - Sends a minecraft achievement with your description.
** /achievement (description) ** - Sends a minecraft achievement with your description.

__Bot:__
** *eval (code) ** - Runs eval code.
** *reload (module) ** - Reloads the cache of an given module.
** *update ** - Updates downloader.js and starts downloader.js.
** *botrs ** - Restarts the bot.
** *botstop ** - Stops the bot when running on Linux.
** /eval (code) ** - Runs eval code.
** /reload (module) ** - Reloads the cache of an given module.
** /update ** - Updates downloader.js and starts downloader.js.
** /botrs ** - Restarts the bot.
** /botstop ** - Stops the bot when running on Linux.
3 changes: 2 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ Version 1.0: Initial commit.
Version 1.1: Added a README.md! Added self deleting message function! Added error catch to /achievement command. Added a /status command with config interaction. Edited /setgame command. Added /ping command. Added /reload command. Added /github command; you can put text behind the command that will appear before the link. Added /botrs and /botstop command.
Version 1.2: Edited /info dm error. Added discord.js version and memory usage to /info command. README.md update.
Version 1.3: Added downloader.js and /update to get the newest version from github. README.md update. Removed /invite because of triggering a verification email from discord. Added argument "off" to /status. /status arguments are now toLowerCase(). Added /userid [mention] command. Added /avatar [mention] command. Fixed a /status wrong argument error. Added /poll command that removes the /poll if any text is given and sends a simple "Poll" if no argument is given. Added /dice (number) command.
Version 1.4: Added "on" to "online" /status alias. Added bot version to /info bot command. Added a :notification: reacter if i am mentioned on my server.
Version 1.4: Added "on" to "online" /status alias. Added bot version to /info bot command. Added a :notification: reacter if i am mentioned on my server.
Version 1.5: Corrected help prefix mistake. Bot will not react with :notification: anymore when self mentioned or a bot mentioned you.
14 changes: 8 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,14 @@ bot.on("ready", async function() {

bot.on("message", async function(message) {

if (message.channel.type !== "dm") {
if (message.guild.id === "231828052127121408" || "232550371191554051") {
if (message.mentions.members.size > 0) {
if (message.mentions.members.get(bot.user.id) != undefined) {
message.react(message.guild.emojis.find("name","notification"))
}}}}
if (message.author.id !== bot.user.id) {
if (!message.author.bot) {
if (message.channel.type !== "dm") {
if (message.guild.id === "231828052127121408" || "232550371191554051") {
if (message.mentions.members.size > 0) {
if (message.mentions.members.get(bot.user.id) != undefined) {
message.react(message.guild.emojis.find("name","notification"))
}}}}}}

if(message.author !== bot.user) return;
if (!message.content.startsWith(PREFIX)) return;
Expand Down

0 comments on commit a735f78

Please sign in to comment.