4.6.1 • Published 4 years ago

karma-core v4.6.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Karma-core

Install

NPM

Usage

note if you need more help, i have an example bot in the "Example" branch.

const karma = require("karma-core");

//Note: the default path is "./data/data.json" and cannot be changed
//as of now at least

karma.Profile("some-user-id");
//sets a new key for "some-user-id" with the value of 0

karma.Inc("some-user-id");
//increases the karma for "some-user-id" by one

karma.Dec("some-user-id");
//decreses the karma for "some-user-id" by one

const someValue = 1;
karma.Set("some-user-id", someValue);
//sets a users karma to a specified value

karma.get("some-user-id");
//returns the karma for "some-user-id"
4.6.1

4 years ago

4.3.9

4 years ago

4.5.9

4 years ago

4.2.7

4 years ago

4.3.8

4 years ago

4.2.8

4 years ago

4.5.10

4 years ago

4.5.11

4 years ago

4.6.0

4 years ago

4.5.12

4 years ago

3.2.7

4 years ago

3.2.6

4 years ago

2.2.6

4 years ago

2.2.5

4 years ago

2.1.5

4 years ago

2.1.3

4 years ago

2.1.2

4 years ago

2.0.2

4 years ago

2.0.1-S

4 years ago

2.0.0

4 years ago