<commit_before>var Q = require('q');
var Economy = require('../economy');
var User = require('../mongo').userModel;

var shop = [
    ['Symbol', 'Buys a custom symbol to go infront of name and puts you at top of userlist. (Temporary until restart, certain symbols are blocked)', 5],
    ['Fix', 'Buys the ability to alter your current custom avatar or trainer card. (don\'t buy if you have neither)', 10],
    ['Avatar', 'Buys an custom avatar to be applied to your name (You supply. Images larger than 80x80 may not show correctly)', 50],
    ['Trainer', 'Buys a trainer card which shows information through a command. (You supply, can be refused)', 50],
    ['Declare', 'Globally declare a message to the whole server! [Can be refused](A small blue message that every chatroom can see; Uses: League Advertisements, Celebrations, ETC)"', 50],
    ['Room', 'Buys a chatroom for you to own. (within reason, can be refused)', 100],
    ['Tacosaur', 'Your name gets added to /tacosaur.', 150],
    ['PM', 'Backdoor Access: Félicette! Back by popular demand!', 300]
];

var shopDisplay = getShopDisplay(shop);

module.exports = {
    atm: 'wallet',
    purse: 'wallet',
    wallet: function(target, room, user) {
        if (!this.canBroadcast()) return;
        if (!target) target = user.name;
        Economy.get(target).then(function(amount) {
            this.sendReplyBox(Tools.escapeHTML(target) + ' has ' + amount + Economy.currency(amount) + '.');
            room.update();
        }.bind(this));
    },

    givebuck: 'givemoney',
    givebucks: 'givemoney',
    givemoney: function(target, room, user) {
        if (!user.can('givemoney')) return false;
        if (!target || target.indexOf(',') < 0) {<commit_msg>Update Shop<commit_after>var Q = require('q');
var Economy = require('../economy');
var User = require('../mongo').userModel;

var shop = [
    ['Symbol', 'Buys a custom symbol to go infront of name and puts you at top of userlist. (Temporary until restart, certain symbols are blocked)', 5],
    ['Fix', 'Buys the ability to alter your current custom avatar or trainer card. (don\'t buy if you have neither)', 10],
    ['PM', 'Send a message to everyone on the server. [Can be refused] (Everyone on the server will receive a message from "~Server PM - [Do not reply] Uses: League Advertisements, Celebrations, ETC', 20],
    ['Avatar', 'Buys an custom avatar to be applied to your name (You supply. Images larger than 80x80 may not show correctly)', 50],
    ['Declare', 'Globally declare a message to the whole server! [Can be refused](A small blue message that every chatroom can see; Uses: League Advertisements, Celebrations, ETC)', 50],
    ['Trainer', 'Buys a trainer card which shows information through a command. (You supply, can be refused)', 50],
    ['Room', 'Buys a chatroom for you to own. (within reason, can be refused)', 100],
    ['Tacosaur', 'Your name gets added to /tacosaur.', 150],
    ['Félicette', 'Backdoor Access: Félicette! Back by popular demand!', 300],
];
var shop = [
    ['Symbol', 'Buys a custom symbol to go infront of name and puts you at top of userlist. (Temporary until restart, certain symbols are blocked)', 5],
    ['Fix', 'Buys the ability to alter your current custom avatar or trainer card. (don\'t buy if you have neither)', 10],
    ['Avatar', 'Buys an custom avatar to be applied to your name (You supply. Images larger than 80x80 may not show correctly)', 50],
    ['Trainer', 'Buys a trainer card which shows information through a command. (You supply, can be refused)', 50],
    ['Declare', 'Globally declare a message to the whole server! [Can be refused](A small blue message that every chatroom can see; Uses: League Advertisements, Celebrations, ETC)"', 50],
    ['Room', 'Buys a chatroom for you to own. (within reason, can be refused)', 100],
    ['Tacosaur', 'Your name gets added to /tacosaur.', 150],
    ['PM', 'Backdoor Access: Félicette! Back by popular demand!', 300]
];

var shopDisplay = getShopDisplay(shop);

module.exports = {
    atm: 'wallet',
    purse: 'wallet',
    wallet: function(target, room, user) {
        if (!this.canBroadcast()) return;
        if (!target) target = user.name;
        Economy.get(target).then(function(amount) {
            this.sendReplyBox(Tools.escapeHTML(target) + ' has ' + amount + Economy.currency(amount) + '.');
            room.update();
        }.bind(this));
    },

    givebuck: 'givemoney',
    givebucks: 'givemoney',
    givemoney: function(target, room, user) {
        if (!user.can('givemoney')) return false;
        if (!target || target.indexOf(',') < 0) {
{'fraction_non_alphanumeric': 0.13572204125950055, 'fraction_numerical': 0.01520086862106406, 'mean_word_length': 3.6572295247724975, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1330019', 'n_tokens_mistral': 1433, 'n_tokens_neox': 1326, 'n_words': 564}