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

Commit

Permalink
[Patch] Various Backported Fixes for 0.19.x (#232)
Browse files Browse the repository at this point in the history
* Fixed deprecation warnings.
Rounded heartbeat ping.

* Fix Travis lint

* Remove fs-extra-promise support. (#242)

* Remove fs-extra-promise support.

* Update ESLint rules.

* Revert "Remove fs-extra-promise support." (#243)

* Revert "Remove fs-extra-promise support. (#242)"

This reverts commit fa6411b.

* Update .eslintrc

* Update installNPM.js

* Update ReactionCollector.js

* Update package.json

* Delete ReactionCollector.js

* Nuke reactionCollector

* Download Command now uses snekfetch

* Download v2 (Backport) (#249)

* Download v2

* Whoops.

* Update CHANGELOG.md

* Update to use fs-extra-native

Since 0.19.2 still relies on fs-extra-native as it uses `fs.klaw` in the loader, this commit is to make it so people don't have to install an extra dependency just to use this command.

* Add a Codacy badge to README.md (#265)

* Add Codacy badge

* Create README.md

* Update README.md

* Update README.md

* Destructuring + package.json updates

* CHANGELOG Update

* Removed node-i18n dependencies (#270)

* Fixed all linting errors (#271)

* Removed node-i18n dependencies

* Fixed ESLint

* Fixed linting: The Return

* Fixed linting: The Linting Awakens (#272)

* Removed node-i18n dependencies

* Fixed ESLint

* Fixed linting: The Return

* Fixed linting: The Linting Awakens

* Moar linting (#273)

* Removed node-i18n dependencies

* Fixed ESLint

* Fixed linting: The Return

* Fixed linting: The Linting Awakens

* Even moar linting

* README Update

* Package Locks
  • Loading branch information
CyberiumShadow authored Jun 17, 2017
1 parent 85c26eb commit 5c46fad
Show file tree
Hide file tree
Showing 44 changed files with 1,554 additions and 690 deletions.
18 changes: 16 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parserOptions": {
ecmaVersion: 8
"ecmaVersion": 8
},
"env": {
"es6": true,
Expand Down Expand Up @@ -29,6 +29,20 @@
"max-len": "off",
"no-underscore-dangle": ["error", { "allow": ["_events"] }],
"global-require": "off",
"no-nested-ternary": "warn"
"no-nested-ternary": "warn",
"valid-jsdoc": ["warn", {
"requireReturn": false,
"requireReturnDescription": false,
"preferType": {
"String": "string",
"Number": "number",
"Boolean": "boolean",
"Symbol": "symbol",
"function": "Function",
"object": "Object",
"date": "Date",
"error": "Error"
}
}]
}
}
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

.c9
# Logs
logs
Expand All @@ -13,4 +12,4 @@ jspm_packages
.npm

# Optional REPL history
.node_repl_history
.node_repl_history
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.c9
# Logs
logs
*.log
Expand All @@ -11,4 +12,4 @@ jspm_packages
.npm

# Optional REPL history
.node_repl_history
.node_repl_history
9 changes: 6 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
- Refer to dirigeants/komada#indev branch

## [0.19.0]
## [0.19.x]
### Added
- Readded ParseTags function due to Komada Provider dependency,
- Added Websocket Heartbeat ping to ping command.
Expand All @@ -19,6 +20,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Extendables Added (postable, attachable, embedable, etc.)

### Changed
- Now the download command can load pieces with `require`s outside module exports.
- Usage now gets the prefix from parseCommand, to reduce errors when using commands and escaped prefixes.
- [Cache optimization] After a piece is reloaded, the cache from the `require` gets deleted.
- [Cache optimization] After a piece is loaded inside the collection, the cache from the `require` gets deleted.
Expand Down Expand Up @@ -51,6 +53,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Removed
- A bunch of deprecated functions that were moved to utils.
- runCommandInhibitors no longer necessary.
- Localisation is now removed

## [0.18.1] - 2017-03-17
### Added
Expand Down Expand Up @@ -328,11 +331,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Various Confs fixes from [UnseenFaith]
- Usage Addition/ParseUsage fix from [UnseenFaith]

[Unreleased]: https://github.com/dirigeants/komada/compare/0.19.0...indev
[Unreleased]: https://github.com/dirigeants/komada/compare/0.19.3...indev
[0.10.0]: https://github.com/dirigeants/komada/compare/1627e6deb1d8c352d83e52ccd590f2330f5f8bb2...0.10.0
[0.11.0]: https://github.com/dirigeants/komada/compare/0.10.0...0.11.0
[0.12.0]: https://github.com/dirigeants/komada/compare/0.11.0...0.12.0
[0.12.4]: https://github.com/dirigeants/komada/compare/0.12.0...0.12.4
[0.18.0]: https://github.com/dirigeants/komada/compare/0.12.4...0.18
[0.18.1]: https://github.com/dirigeants/komada/compare/0.12.4...0.18.1
[0.19.0]: https://github.com/dirigeants/komada/compare/0.18.1...0.19.0
[0.19.x]: https://github.com/dirigeants/komada/compare/0.18.1...0.19.3
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[![Greenkeeper badge](https://badges.greenkeeper.io/dirigeants/komada.svg)](https://greenkeeper.io/)
[![Build Status](https://travis-ci.org/dirigeants/komada.svg?branch=indev)](https://travis-ci.org/dirigeants/komada)
[![David](https://img.shields.io/david/dirigeants/komada.svg?maxAge=3600)](https://david-dm.org/dirigeants/komada)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/e1aaa6defd59485caa4876849ac83874)](https://www.codacy.com/app/dirigeants/komada-repo?utm_source=github.com&utm_medium=referral&utm_content=dirigeants/komada&utm_campaign=Badge_Grade)

Komada is a modular framework for bots built on top of [Discord.js](https://github.com/hydrabolt/discord.js). It offers an extremely easy installation, downloadable commands, and a framework to build your own commands, modules, and functions.

Expand Down Expand Up @@ -53,7 +54,7 @@ komada.start({
Then, run the following in your folder:

```
npm install
npm install --production
node --harmony app.js
```

Expand Down
4 changes: 1 addition & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exports.start = async (config) => {
client.messageMonitors = new Discord.Collection();
client.providers = new Discord.Collection();

// Extend Client with Native Discord.js Functions for use in our pieces.
// Extend Client with Native Discord.js Functions for use in our pieces.
client.methods = {};
client.methods.Collection = Discord.Collection;
client.methods.Embed = Discord.RichEmbed;
Expand All @@ -51,8 +51,6 @@ exports.start = async (config) => {
await loadCommands(client);
await loadCommandInhibitors(client);
await loadMessageMonitors(client);
client.i18n = client.funcs.loadLocalizations;
client.i18n.init(client);
client.destroy = () => "You cannot use this within Komada, use process.exit() instead.";
client.ready = true;
});
Expand Down
Loading

0 comments on commit 5c46fad

Please sign in to comment.