Giter VIP home page Giter VIP logo

spark's People

Contributors

advaith1 avatar czollo avatar greenkeeper[bot] avatar sanil14 avatar sharletk avatar tobiasfeld22 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

spark's Issues

Channel type filtering

Below is my suggestion:

Having the easy ability to set an option in each command where people can decide whether the command can be performed in DMs only, Guilds only OR Guilds & DMs.

AJFire14#1004

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

Info Command - All Spark bots

An info command which holds key summary (aim & features) in basic form of spark, version, invite to support server & link to website. This command will be a default one for all bots using Spark framework.

Reload & reboot commands for Spark V0.1

There should be commands to reboot and / or reload parts of the bot
!reboot => Stops the bot, so when used with pm2 and such, it will relaunch it.
!reload => Reloads the bots files, so you can for example work on a command, without having to reboot your bot.
reload should have subcommands like:
!reload commands => Reloads commands
!reload MF / messagefunctions / message => Reload message functions
!reload BF / bootfunctions / boot => Reload boot functions
!reload cmds / commands => Reload commands
!reload snippets => Reload snippets
!reload functions => Reload boot, message and snippet functions.
!reload permissions / perms => Reload permissions

Improve ignoring bots behaviour

Currently if specified in the config that Spark should ignore bots, it will also ignore it in message functions, which could be problemetic for message scanning, autodelete in a channel, etc.

I want to change
allowBots: true
to
allowBots: true For ignoring message function and commands
allowBots: "message" For only ignoring commands.
allowBots: "command" For only ignoring messagefunctions

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

About command

Includes a summary of Spark's aim & features. Include necessary links too.

Improve how snippets work (and other functions in the future)

Although the system we currently use works, it can be improved, lots.

Starting with the snippets system, i want to change some stuff around.
Snippets currently use this format:
client.snippets.get("snippet-name')(client, etc)
I want to change this to these 2 structures:
client.snippets.snippet-name(client, etc) and
client.snippets.list("snippet-name")
In the last case snippet-name is optional, it will return a list of names if null.

add a way to import customConfig's.

Have an import method, like client.customConfig.import(arg)

arg can be an array or map, with the config intern
for example:

var data = {guildId: "1234", data: {prefix = ["!"]}}
client.customConfig.import(data)

or

var data  = new Map()
map.set("1234", {test: true})
client.customConfig.import(data)

redo the permission system

For now the whole permission system has been 1 glorified message filter

i want to make a system where permissions can be added in permission files, making it easier to share or update.

  • functions
  • commands
  • permissions
    • Member.js
    • Admin.js
    • Owner.js

Adding disabling certain internal modules

For multiple reasons, disabling certain things, like for example commands could be useful so people don't touch that one broken piece of code to make sure people don't abuse it.

  • Add in the config section
    disabled: {commands: ["about"]}
    or:
  • Add in the custom configs
    message.guild.customConfig.disable("commands", "about")

An in-range update of mocha is breaking the build 🚨

☝️ Greenkeeper’s updated Terms of Service will come into effect on April 6th, 2018.

Version 5.0.2 of mocha was just published.

Branch Build failing 🚨
Dependency mocha
Current Version 5.0.1
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

mocha is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Release Notes v5.0.2

5.0.2 / 2018-03-05

This release fixes a class of tests which report as false positives. Certain tests will now break, though they would have previously been reported as passing. Details below. Sorry for the inconvenience!

🐛 Fixes

  • #3226: Do not swallow errors that are thrown asynchronously from passing tests (@boneskull). Example:

    it('should actually fail, sorry!', function (done) {
      // passing assertion
      assert(true === true);
    

    // test complete & is marked as passing
    done();

    // ...but something evil lurks within
    setTimeout(() => {
    throw new Error('chaos!');
    }, 100);
    });

    Previously to this version, Mocha would have silently swallowed the chaos! exception, and you wouldn't know. Well, now you know. Mocha cannot recover from this gracefully, so it will exit with a nonzero code.

    Maintainers of external reporters: If a test of this class is encountered, the Runner instance will emit the end event twice; you may need to change your reporter to use runner.once('end') intead of runner.on('end').

  • #3093: Fix stack trace reformatting problem (@outsideris)

:nut_and_bolt Other

Commits

The new version differs by 13 commits.

  • f2ee53c Release v5.0.2
  • ff1bd9e update package-lock.json
  • 6a796cb prepare CHANGELOG for v5.0.2 [ci skip]
  • 0542c40 update README.md; closes #3191 [ci skip]
  • afcd08f add MAINTAINERS.md to .fossaignore [ci skip]
  • 3792bef add opencollective header image to assets/
  • 5078fc5 persist paths in stack trace which have cwd as infix
  • 2c720a3 do not eat exceptions thrown asynchronously from passed tests; closes #3226
  • 3537061 Update to correctly licensed browser-stdout version
  • ec8901a remove unused functionality in utils module
  • f71f347 rename wallaby.js -> .wallaby.js
  • c4ef568 fix PR url
  • 73d55ac fix typos in changelog [ci skip]

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Add event file loader

Event file loader should be added, although it may not be implemeted right away due to priorities, it should at least be implemented to make developement in the future easier.

Reload: Edit "reloading" message instead of sending new "reloaded" message

For the reload command, Spark v0.0.x used to edit the "Reloading" message to "Successfully reloaded x commands". However. Spark v0.1 sends "Reloading all files..." then sends "Successfully reloaded all files." in a new message.

It would be better if it edited the "Reloading" message instead of sending a new one.

custom configs on guildbasis

Basically adding the option to "import" some config options for a single guild only (for example prefix)

client.addCustomConfig("248505281741455360", {prefix: "S!"})

Improve the updatecheck

I have some goals i want to do with the update check module.

  1. I want the updatecheck to get smarter,
    "scan" through code to see if some commands should be changed or if some code is going to be removed, and instructions on how to solve them. This would make it easier for users to stay on the latest versions.

  2. Better upgrade indicator, instead of saying "there is a new update (versionnumber)" show more info on what is new.

It could look something like this:


Update (versionnumber) is ready to download, core changes include:

  • thing 1
  • thing 2

Run spark-update test to help decide if you are ready, by running a test to determine what needs to be changed.

Run spark-update changelog to get the full changelog.

Run spark-update install to try to update for you.

[Feature Request] More levels for future updates!

Currently there is only 1 permLevel recognition from the config that is bot owner.

Preferably add a few more like botAdmin and botModerator to it and then it gets the ID's of users from the config and then applies them.
It would be a usefull as it could also be used so that it can represent which level the user is to use a specific command.

Also an id option could be added (manually setting a list of users that are allowed to have this permission level globally
or an role name option that would check if an user has a role with the name specified (checking capital letters could be disabled if prefered)

[Feature request] native Event support

I would like to add native Event support,
you would have a folder like /functions or /commands, just with /events
Structure of an event file:

.name = String (Just for identification purposes when an error occurs. and to store it in the system)
.event = String (Is event name "ready" or "message", etc.)
.function = Function (function that happens when event is triggered)

Commands - Subfolders

Hello. Below is my suggestion of what could be added to Spark to improve organisation:

  • Adding subfolders to commands. Basically, within the commands folder, the easy ability to create subfolders inside it to keep commands neatly in different sections for example:

Bot
Commands
> Moderation
> Utility
> Example 3 etc...

AJFire14#1004

Default Help Command for V0.1

This will display all information about the overview of commands and specific information about them.

Will Include:

  • Name
  • Description
  • Alias'
  • Permission Level
  • Disabled or not

Also adding description field to every command file so that it can briefly describe the command.

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.