4.6.1 • Published 5 years ago

karma-core v4.6.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 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

5 years ago

4.3.9

5 years ago

4.5.9

5 years ago

4.2.7

5 years ago

4.3.8

5 years ago

4.2.8

5 years ago

4.5.10

5 years ago

4.5.11

5 years ago

4.6.0

5 years ago

4.5.12

5 years ago

3.2.7

5 years ago

3.2.6

5 years ago

2.2.6

5 years ago

2.2.5

5 years ago

2.1.5

5 years ago

2.1.3

5 years ago

2.1.2

5 years ago

2.0.2

5 years ago

2.0.1-S

5 years ago

2.0.0

5 years ago