Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "use strict";
- let commands = {
- add: function (target, user) {
- if (!this.can('lock')) return this.errorReply('Access denied');
- let args = target.split(",");
- let id = Math.floor(Math.random() * 16777215).toString(16);
- db("jobs").set(id,{
- 'title':args[0],
- 'description':args[1],
- 'reward': +args[2],
- 'owner': user,
- });
- this.sendReply("Successfully added job " + id);
- },
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement