Skip to content

Tags: ImmortalSnake/klasa

Tags

v0.4.0

Toggle v0.4.0's commit message
Merge branch 'stable'

v0.3.0

Toggle v0.3.0's commit message
0.3.0 release (dirigeants#16)

* Don't need a client option for command logging, since the finalizer can be disabled

* respect finalizers being enabled or not

* category bug

* oops, wrong category

* fix old run command inhibitors code

* command handler simplifications

* make the clientBaseDir set-able

* Docs build: e52e2ce

* breaking change, make name optional (moved to options object on all structures)

* Docs build: 4a2502f

* update docs to reflect name being optional

* Docs build: dec0667

* update eslint to prefer destructuring

* fix permissions inhibitor I think

* missed await damnit...

* add back silent inhibitors (apparently)

* add client.owner, switch to pointer comparisons

* Docs build: 45a9189

* Abstract Store and Piece interfaces

to shore up a lot of duplicated code

* Docs build: b0d1edc

* make extendables reloadable/unloadable

* missed one

* Docs build: e52f91d

* Freaking codacy, pls with this dupe stuff

* Docs build: 7d885f6

* skips is optional...

* Docs build: eba9099

* make download less repetative, but still very much broken

* missed a this.client

* deduplicate conf

* Update CreatingUsageStrings.md

* Docs build: f96a017

* fix stores paths

* Fix super not being able to be called from the interface

* Docs build: 2bb9f01

* this works now

* 0.2.0

* Bug fixes

* 0.2.1

* untested add language pieces support

* settingGateway provider getter, so reloading works

* Docs build: 0e8ceea

* load languages

* Docs build: e616a85

* derp, fix load languages

* allow languages to be reloaded

* allow languages to be transferred

* fix language arg resolver, and missing localization for commandMessage

* some mistakes fixed

* fix wrong language term in conf

* remove client arg from invite locals

* undo last commit

* Added es-ES (dirigeants#5)

* Fixed some stuff, changed quotes.

* Added es-ES

* Update es-ES.js

* make inhibitors give all the reasons why they can't use the command; and provide a way to silence all.

* Docs build: 94930fc

* oops

* command message loc fix

* fix oops, dms don't have this.guild either

* spelling mistake

* Clean up ParsedUsage, make typedefs members of their classes if they are only used there, make defaultPermLevels a static prop of KlasaClient

* Docs build: c2c47d8

* fix some bugs

* forgot to pass usageString

* Docs build: 3e254e8

* it doesn't like this.constructor

* make debugging easier

* fix the error throwing wrong because members isn't split

* fix conf command so errors don't get uncaught promise errors

* Shore up somewhat duplicated localization strings

* Docs build: 3d505fd

* Added fr-FR (dirigeants#6)

* Add french language

* Revision

* Update resolver strings

Remove SETTING_RESOLVER_X
Change ARG_RESOLVER_X to RESOLVER_X

* Post-proofreading corrections

* Missing whitespace

* Missing word...

* Added romanian localisation (dirigeants#7)

* Added romanian localisation

* Fixed linting (as always)

* handle missing language strings more robustly

* misspelled the language term

* Docs build: 93eb7be

* let's not make infinit loops

* wow, I am surprised those horrible ticks worked...

* its in a codeblock, md doesn't work

* and default the default

* fix default language accessing

* check if default language before offering a default language translation

* make Resolver.regex accessible + documentation

* Docs build: a91b640

* reload languag reference

* make extendables truely enableable/disableable

* Docs build: 4b7e5c0

* make languages actually disableable/enablable

* if the default language is disabled ignore that it is disabled

* update reload command to allow all extendables

* switch all forEach() loops in prep for turbofan

* Docs build: db38866

* copy paste stronk

* Simplify permission levels/structure (dirigeants#8)

* Simplify permissions

* Requested changes

* Some more changes

* no-useless-else

* Docs build: 0e9ee44

* PermissionLevel Tweaks and language init fix

* Docs build: 90c2e0d

* fix PermissionLevels.run

* permissionLevels consistancy sweep

* Missed one...

* Docs build: dece0fe

* Clarify and update PermissionLevel docs

* Docs build: bccc94d

* fix bug with defaultPermissionLevels

* fix usableCommands

* make languages init

* Docs build: 77c6965

* Update version for bug identification in dev versions

* new DE and updated EN (dirigeants#9)

* new DE and updated EN

* some more original discord translation

* eslint

* more wording fixes

* no trailing line in 107

* 107 blank again

* fix double term

* fix trailing space

* Docs build: 664ec79

* Update log.js

* update deps

* Update package.json

* Breaking Change: remove Admin/Mod Roles

And change Client.defaultPermissionLevels to the following:
0: everyone
6: member.permissions.has('MANAGE_GUILD')
7: guild owner
9: bot owner - break
10: bot owner - silent

Given the recent changes to PermissionLevels, this should allow 99.9% of users to only need to edit the default permissions, rather than remake them/transfer effected commands, and manually patch whenever updating klasa.

example:
```javascript
const { Client } = require('klasa');
const config = require('./config.json');

Client.defaultPermissionLevels
    .addLevel(3, false, ...) // let some group of people who solved some easteregg clues use a special command/some custom non-admin role
    .addLevel(6, false, (client, msg) => msg.guild && msg.member.permissions.has('ADMINISTRATOR')) // Make the requirements to use conf stricter than just who can add the bot to the guild
    .addLevel(8, false, (client, msg) => client.config.botSupportTeam.includes(msg.author.id); // add a role above guild owners that let your support team help setup/troubleshoot on other guilds.

new Client(config).login(config.token);
```

* Docs catch-up

* Docs build: 72ea8ff

* fix some formatting

* oops, forgot to hit save...

* Docs build: 7292eec

* Docs build: a6cf5ba

* Fix artifact events

* Update and rename client.js to Client.js

* Update index.js

* Rename argResolver.js to ArgResolver.js

* Rename settingResolver.js to SettingResolver.js

* Docs build: add0a73

* Docs build: f0b360b

* Update Client.js

* Rename hasAtleastPermissionLevel.js to hasAtLeastPermissionLevel.js

* regex args [init]

* Docs build: ac8e8c7

* fix oops

* fix edgecase in regex argtype

* add piece arg type

* Docs build: 00a9955

* update argresolver and understanding usage strings

* Docs build: aabe71b

* fix regex arg type

* added quoted string support and options to turn it on and off everywhere

* Docs build: d7dd54b

* allow unlimited spaces between command and args

* add some promisified util functions

* Docs build: 173ced8

* document util.exec and util.sleep

forgot to hit save

* Docs build: bc8cd33

* Add typing mode

* Docs build: 21c0142

* SettingGateway Updates (dirigeants#10)

* Update SettingGateway.js

* Update SQL.js

* Update SettingGateway.js

* Update CacheManager.js

* Update CacheManager.js

* Update SchemaManager.js

* Create SettingsCache.js

* Update Client.js

* Update guildCreate.js

* Update guildDelete.js

* Update guildSettings.js

* Update conf.js

* ESLint

* ESLint

* Fixed ESLint in SettingGateway

* ESlint SettingsCache

* Update SQL.js

* Update conf.js

* Default stuff correctly.

* Fix minibug.

* Whoops.

* Fixed conf.

* Multiple bugfixes in SettingResolver and SettingGateway

* Added textchannel and voicechannel parsers

* update klasa defaultDataSchema

* fix lint

* Docs build: a9a46dc

* fix typing keep typing while inhibited

* Document and add a few events

* Docs build: d8dc26a

* fix event docs

* Docs build: 9b70fbe

* fix logic error?

* logic error (this seems wrong...)

* fix logic and help command

* simplify logic because duh...

* temp update docs until I have more time to fix correctly

* forgot to hit save

* Docs build: 5081801

* Docs build: 0ee9e4c

* experimental klasa extendables

* Docs build: d2bf94e

* fix broken tutorial link

* update extendable tutorial

* Docs build: 21e0f24

* Docs build: dea7154

* Fix circular require

* Docs build: 535fa3d

* add extendable properties

* Docs build: 589df10

* update creating extendables tutorial

* Docs build: 0f9326c

* remove property extensions since they cannot be controlled like other extendables

* Docs build: 627b460

* add provider shutdown support

* Docs build: 50253f7

* update some documents

* Docs build: ccda978

* slight reorginzation / fixes

* Docs build: b5a9e08

* update gettingStarted.md

* Docs build: 1b0f569

* update client config options in gettingstarted

* Docs build: ef9c0f2

* docs consistancy sweep

* Docs build: 29d8ad9

* add a baseline SettingGateway tutorial

* Docs build: b6953b5

* fix markdown

* Docs build: bb52914

* Docs build: b2d01b0

* add missing included events

* Docs build: 244a456

* fix local

* pls guys, basic command handler logic missing...

* Better walking

* Docs build: 84dc9be

* Update Command.js

* Docs build: 6f6aa67

* check me not the author

* fix d.js breaking change

* Added botPerms to to command options list (dirigeants#12)

* Docs build: 4cff9dc

* fix invite from returning a function

* should be everything needed for fully custom user pieces/stores

* Docs build: 36172f1

* add a check to skip for custom pieces

* Docs build: 0ac1e9f

* do some fancy stuff with registered stores

* Docs build: 53d193d

* docs and small fixes

* Docs build: 75002e7

* Update README.md (dirigeants#13)

* Docs build: fd0ac77

* small clarifications to PieceStore

* Docs build: b729980

* fix loading

* iterate over map values instead

* Update commandHandler.js

* Update the default clientBaseDir to wherever the app.js or main file is, even if in subfolders like ./src/ (config option stays to define completely custom locations, or process.cwd())

* Docs build: ca6fb45

* Update Resolver.js for d.js v12 store refactor

* fix min max on string settings

* cache the friendlier version of perms ahead of time

* fix oops

* commandlogging being unconfigureable (dirigeants#15)

* Update commandlogging.js

* Update commandlogging.js

* Update commandlogging.js

* Update Client.js

* Update commandlogging.js

* Docs build: e62d3b0

* update extendables to add missing dm support and fix d.js breaking embed editing

* bump version

* update deps

v0.2.2

Toggle v0.2.2's commit message
0.2.2

v0.2.1

Toggle v0.2.1's commit message
0.2.1

v0.2.0

Toggle v0.2.0's commit message
0.2.0

v0.1.1

Toggle v0.1.1's commit message
0.1.1

v0.1.0

Toggle v0.1.0's commit message
0.1.0