Giter Club home page Giter Club logo

sharpbot's Introduction

PermissionItems

A simple plugin to let you make certain items require permissions to use.

This plugin allows you to set up "permission items", so that items which match custom filters that you define will require a specific permission to use. See Configuring for more of an explanation.

Download

Installation

  1. Download either the latest released or development build of the plugin.
  2. Drop the JAR in your server's plugins folder.
  3. Restart your server.
  4. Edit the config to your liking.
  5. Reload the config with /permissionitems reload.

Commands

/permissionitems <reload|version>

The basic admin command of PermissionItems.

  • Aliases: pitems
  • Permission: PermissionItems.admin

Configuring

There are 3 config files for PermissionItems:

  1. config.yml -- This contains global settings for the plugin.
  2. messages.yml -- This contains the customizable messages for the plugin.
  3. items.yml -- This contains the actual permission items that you have configured.

Both config.yml and messages.yml are relatively straightforward, just read the comments in the files.

items.yml consists of a series of named sections which have a few key properties:

  • permission -- The permission required to use this item.
  • filters -- A list of filter objects that must all match in order for an item to be recognized as this permission item.
  • (Optional) prevent -- Custom overrides for the settings specified in config.yml.
  • (Optional) send-messages -- Custom override for the setting specified in config.yml.

Filters consist of a configuration section with a type and a value key. type must be one of the following:

  • material -- Matches the material / type of the item.
    • Contains an optional mode key, which is either whitelist (only match items of the given type) or blacklist (only match items other than the given type).
  • durability -- Matches the durability / damage of an item.
    • Contains an optional mode key, which is either equals, less, or greater.
  • name -- Matches the custom name of an item. Color codes supported.
  • lore -- Matches the lore of an item. Color codes supported.
    • Contains an optional line key, which specifies the line number to check (starting with 0 being the first line). If not specified, it will check to see if any line of the lore matches.

sharpbot's People

Contributors

abyss avatar alexanderbeck0 avatar arsenarsen avatar carbowix avatar codingale avatar doxylamin avatar lucaspmagno avatar mstrodl avatar nitehawkdevs avatar nobobo1234 avatar rayzr522 avatar shikhir-arora avatar thebaconspace avatar votyn avatar xshotd avatar yonilerner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sharpbot's Issues

Nodejs downloading background

I left the cmd opened for 10 mins when eating and when I came back, it ate up 150 mb ... I was like waaa?
So I'm asking on how to stop nodejs from downloading background when using the selfbot so it doesn't eat my data cuz I don't want my data to be used up. I want to do stuff like embedded messages and evals by leaving cmd opened.
Thanks

Suggestion

Would it be possible to have a Branch For using with bot with out having to use the selfbot

Multi-command shortcuts

Just like the title says. I'm thinking the commands should be separated by ;;. It's similar to a normal semicolon which is used in most programming languages, but it's less likely to conflict.

Claiming

CAN'T START

I dit everything you said but the bot i not online on my server!

Plz help me

Censor token?

I eval'd bot.token in my selfbot and it came out with the full token.

You may want to censor it for... you know safety/security

Cannot quote messages globally

Whenever I attempt to quote a message from a different server or even a different channel, the bot simply pulls a different message from the current channel. Is this possible to be fixed?

TypeError: Cannot read property 'getTime' of undefined

const millisCreated = new Date().getTime() - user.createdAt.getTime();
                                                           ^
TypeError: Cannot read property 'getTime' of undefined
    at Object.exports.run (C:\Users\SurPRiZe\Desktop\Projects\Ikaros\commands\userinfo.js:11:64)
    at Client.module.exports.message (C:\Users\SurPRiZe\Desktop\Projects\Ikaros\events\message.js:17:9)
    at emitOne (events.js:115:13)
    at Client.emit (events.js:210:7)
    at MessageCreateHandler.handle (C:\Users\SurPRiZe\Desktop\Projects\Ikaros\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
    at WebSocketPacketManager.handle (C:\Users\SurPRiZe\Desktop\Projects\Ikaros\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:102:65)
    at WebSocketConnection.onPacket (C:\Users\SurPRiZe\Desktop\Projects\Ikaros\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:325:35)
    at WebSocketConnection.onMessage (C:\Users\SurPRiZe\Desktop\Projects\Ikaros\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:288:17)
    at WebSocket.onMessage (C:\Users\SurPRiZe\Desktop\Projects\Ikaros\node_modules\ws\lib\EventTarget.js:103:16)
    at emitTwo (events.js:125:13)

userinfo.js not working for me

Emojify messages

Now, this may just be me, but the command message seem very cold and heartless. I think we need to spruce them up a bit with emojis!

I'm assigning this to myself because I'm a perfectionist when it comes to design.

Google Image search?

Would it be possible to add a google image search function/command? Such as //gsearch pie
and then have it pull up a few pie images. or something like that.

delete this mem leak

kthxbai

if you really want to keep this you better use only 1 module snekfetch and make all requests yourself and as this is bloatware that takes memory and i hate this each user i see using selfbot is 99% sharpbot

//quote has Incorrect time

When using //quote to quote a message, the time that is put into the embed is the time //quote command was sent, instead of when the quoted message was sent.

Example

TODO List

A todo list managed through bot commands and stored in the database. Especially useful for myself ;)

Binary Gulp Not found

When Doing yarn start Git said the binary gulp was not found how do I fix this issue?
(exact error
$ yarn start yarn run v1.1.0 $ gulp error Couldn't find the binary gulp info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Thanks for your time please help me!

Aren't selfbots banned from discord?

Selfbot Use on Discord
Selfbots (aka self bots, self-bots) are bot code that runs under a user account and only respond with commands to the user account it's run on. Selfbots do not react to others in any way.
Selfbots are, and always have been, against the Discord API terms of use and by extension, the Discord Terms of Service, since Bot accounts were created. This position has not changed.
Source: Automating normal user accounts (generally called "self-bots") outside of the OAuth2/bot API is forbidden, and can result in an account termination if found. https://discordapp.com/developers/docs/topics/oauth2
Discord's enforcement of the selfbot policy has not changed either in the last year. If you decide to use a selfbot you do so at your own risk of getting your account banned from the API and Discord. API restrictions on selfbots are tight, any sort of abuse will be immediately dealt with.
Note: Userbots (aka user bots, user-bots) which spam, respond to others, react to others, welcome users, etc, are dealt with swiftly and immediately. You can report userbots to [email protected].

Just a head's up because of the new TOS change.
This was also form DDevs server.

Image Dump

Create an Image Dump Feature that allows you to grab all images from a certain amount of messages.

//spotify results with HTTP 401

When using //spotify with a link to a Spotify song, The result is an unauthorized error. The link I used is https://open.spotify.com/track/1zxtt6Dx3cxEd45ICVsi32.

What I typed + results

Emails

Not sure how or why the hell I am subscribed to this, but the unsubscribe doesn't work in the email. Any other options because I don't care about this project at all.

Config commands

A command to edit config values (with input validation) would be great, and would be especially helpful for #27. This will help prevent people from messing up their config, and will make it easier to set things like their prefix.

help fails on modules starting with c

If a module starts with c, help detects //help as help categories and doesn't provide the information.

RegEx in help.js probably needs updated to fix it but this isn't my strong point.

Keyword Logger

Requested by cvong101#5887 (ID: 266049841207967745) (note to self -- ping him when I'm done)

Features

  • Log to webhook
  • Toggle whether or not to log bot messages
  • Configurable list of words
  • Blacklist for:
    • Channels
    • Guilds
    • Users
  • Command interface for:
    • Adding words
    • Blacklisting channels/guilds/users
    • Setting logger webhook

Command Tree

logger - print help message
  words - show list of logger words
    list [page] - lists a given page of words
    add <word> - adds a word
    remove <word> - removes a word
  blacklist - shows info about blacklist (# of blacklisted guilds/users/channels)
    list <users|guilds|channels> [page] - lists the blacklist entries for the given type and optionally 
    add <user|guild|channel> <value> - adds a blacklist entry
    remove <user|guild|channel> <value> - removes a blacklist entry
  config
    url <webhook URL> - sets the webhook URL
    logbot <true/false> - sets whether or not to log bot messages

Prune counts others messages when deleting

In the scenario:

Me: Thing 1
Me: Thing 2
Someone Else: Other Thing
Me: Thing 3

Running //prune 3, you would expect to delete all 3 things, but instead only deletes Thing 2 and 3 (due to counting Someone Else's Other Thing as well).

setgame not working

It just doesn't work. Does not give any output in the cosole but says: "Game changed ........"
Nothing else... Absolutely nothing

Rotate game

Requested by Brandon#0029

It would be great if you could set up multiple games in a config file and have them rotate at a configurable delay. As an added feature, we could make them rotate either randomly or sequentially.

Image-dump command outputs relative to installation directory

Currently the //imagedump command outputs relative to the installation directory. Since that is some weird system folder (based on wherever yarn global add sharpbot installs it), that's not exactly the optimal solution.

Two alternatives:

  1. Output relative to the CWD at the time of running sharpbot. So if you do cd Desktop and then sharpbot, all images would be dumped to ~/Desktop/out.
  2. Output to the data folder for SharpBot and log the path to it in the console.

Dictionary web-scraper is broken

It looks like the webdict web-scraper is broken. I've looked at the code and it's just using cheerio to get the content of some elements on the page. My guess is that dictionary.com redesigned the website and now the structure is different.

Rip

Embed message

I actually don't know how to embed those messages... A Selfbot helps me to embed a message but I don't know how to edit a color for it... I mean the color of the side of the embedded message. It randoms each embedded messages.
screenshot_536
A quick response would help me and I really appreciate it, thanks.

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.