<commit_before>/**
 * Created by julian on 16.05.2016.
 */
var config = require('../../config/main.json');
var path = require('path');
var voice = require('../utility/voice');
var messageHelper = require('../utility/message');
var cookie = require('./misc/cookie');
var eatCookie = require('./misc/eatCookie');
var humanize = require('humanize');
var basicCommands = function (bot, message) {
    var messageSplit = message.content.split(' ');
    switch (messageSplit[0]) {
        case "!w.help":
            var reply =  "Hey im Wolke-chan," +
                "Lets have fun together here on Discord (/^▽^)/\n" +
                "Commands you can write:" +
                " ```!w.help --> Help \n" +
                "SUPPORT:\n" +
                "!w.bug --> get the Link of the Support Discord \n" +
                "!w.add --> Get a link to add me to your server \n" +
                "--------------------------------\n" +
                "Music:\n" +
                "!w.voice --> i join the Voice Channel you are currently in (only usable with WolkeBot Role)\n" +
                "!w.silent --> i leave the Voice Channel i am currently connected to. (only usable with WolkeBot Role)\n" +
                "!w.songlist --> Lists all Songs that are currently added to the Bot Database\n" +
                "!w.play name --> Play a Song/Youtube Video max Length: 1H30M (only usable with WolkeBot Role)\n" +
                "!w.forever name --> Plays a Song/Youtube Video in repeat until another Song is played/added to the Queue (only usable with WolkeBot Role)\n" +
                "!w.pause --> Pause the Current Song (only usable with WolkeBot Role)\n" +
                "!w.resume --> Resume the pause Song (only usable with WolkeBot Role)\n" +
                "!w.search name --> Searches for a Song in the Bot Database and shows the 5 best Results\n" +
                "!w.skip --> Skips the Current Song (only usable with WolkeBot Role)\n" +
                "!w.voteskip --> Starts a Voteskip for the current Song, more than 50% of the channel have to vote, then it is skipped.\n" +
                "!w.qa name --> Adds a Song/Youtube Video to the Queue max Length: 1H30M\n" +
                "!w.qrl --> removes the latest added song out of the queue \n" +
                "!w.queue --> Shows the current Queue\n" +
                "!w.rq --> Adds a random Song to the Queue max Length: 1H30M\n" +
                "!w.random --> Plays a Random Song (only usable with WolkeBot Role)\n" +
                "!w.osu maplink --> download a Osu Map\n" +
                "--------------------------------\n" +
                "Youtube:\n" +
                "!w.yts query --> Searches Youtube and gives you the First Result\n" +
                "!w.ytq query --> Searches Youtube and adds the First Result to the Queue"
                + "--------------------------------```";
            var reply2 =
                "```Other Stuff:\n" +
                "!w.r34 tags --> Searches Rule34 for tags and gives back 1 Image, only usable with WolkeBot Role or a configured NSFW Channel.\n" +
                "!w.level --> Your Level and XP needed for next Level\n" +
                "!w.rank --> Leaderboard for this Server\n" +
                "!w.noLevel --> disables the level system for you. Use again to enable it again for you.\n" +
                "!w.noPm --> disables the PM notifications for you. Use again to enable it again for you.\n" +
                "!w.pp beatmaplink acc --> Calculates PP for the beatmap with acc, currently nomod only...\n" +
                "!w.setLewd--> Sets the current Channel as the NSFW Channel\n" +
                "!w.cookie @user --> Gives a Cookie to the mentioned User or shows your Cookies if no one is mentioned. (Giving Cookies is only usable with WolkeBot Role)\n" +
                "If you want to talk with me @mention me with a message :D```";
            bot.sendMessage(message.author, reply, function (err) {
                if (err) return console.log(err);
                bot.sendMessage(message.author, reply2);
            });
            bot.reply(message,'OK, i send you a list of commands over PM.');
            return;
        case "!w.version":
            bot.reply(message, 'I am running on Version ' + config.version);
            return;
        case "!w.add":
            bot.reply(message, "Use this Link to add me to your Server: \<https://discordapp.com/oauth2/authorize?client_id=" + config.client_id + "&scope=bot&permissions=66321471\>");
            return;
        case "!w.bug":
            bot.reply(message, 'Please join the support Discord: https://discord.gg/yuTxmYn to report a Bug.');
            return;
        case "!w.songlist":<commit_msg>updated Help<commit_after>/**
 * Created by julian on 16.05.2016.
 */
var config = require('../../config/main.json');
var path = require('path');
var voice = require('../utility/voice');
var messageHelper = require('../utility/message');
var cookie = require('./misc/cookie');
var eatCookie = require('./misc/eatCookie');
var humanize = require('humanize');
var basicCommands = function (bot, message) {
    var messageSplit = message.content.split(' ');
    switch (messageSplit[0]) {
        case "!w.help":
            var reply =  "Hey im Wolke-chan," +
                "Lets have fun together here on Discord (/^▽^)/\n" +
                "Commands you can write:" +
                " ```!w.help --> Help \n" +
                "SUPPORT:\n" +
                "!w.bug --> get the Link of the Support Discord \n" +
                "!w.add --> Get a link to add me to your server \n" +
                "--------------------------------\n" +
                "Music:\n" +
                "!w.voice --> i join the Voice Channel you are currently in (only usable with WolkeBot Role)\n" +
                "!w.silent --> i leave the Voice Channel i am currently connected to. (only usable with WolkeBot Role)\n" +
                "!w.songlist --> Lists all Songs that are currently added to the Bot Database\n" +
                "!w.play name --> Play a Song/Youtube Video max Length: 1H30M (only usable with WolkeBot Role)\n" +
                "!w.forever name --> Plays a Song/Youtube Video in repeat until another Song is played/added to the Queue (only usable with WolkeBot Role)\n" +
                "!w.pause --> Pause the Current Song (only usable with WolkeBot Role)\n" +
                "!w.resume --> Resume the pause Song (only usable with WolkeBot Role)\n" +
                "!w.search name --> Searches for a Song in the Bot Database and shows the 5 best Results\n" +
                "!w.skip --> Skips the Current Song (only usable with WolkeBot Role)\n" +
                "!w.voteskip --> Starts a Voteskip for the current Song, more than 50% of the channel have to vote, then it is skipped.\n" +
                "!w.qa name --> Adds a Song/Youtube Video to the Queue max Length: 1H30M\n" +
                "!w.qrl --> removes the latest added song out of the queue \n" +
                "!w.queue --> Shows the current Queue\n" +
                "!w.rq --> Adds a random Song to the Queue max Length: 1H30M\n" +
                "!w.random --> Plays a Random Song (only usable with WolkeBot Role)\n" +
                "!w.osu maplink --> download a Osu Map\n" +
                "--------------------------------\n" +
                "Youtube:\n" +
                "!w.yts query --> Searches Youtube and gives you the First Result\n" +
                "!w.ytq query --> Searches Youtube and adds the First Result to the Queue"
                + "--------------------------------```";
            var reply2 =
                "```Other Stuff:\n" +
                "!w.r34 tags --> Searches Rule34 for tags and gives back 1 Image, only usable with WolkeBot Role or a configured NSFW Channel.\n" +
                "!w.kona tags --> Searches Konachan for tags and gives back 1 Image, only usable with WolkeBot Role or a configured NSFW Channel.\n" +
                "!w.e621 tags --> Searches E621 for tags and gives back 1 Image, only usable with WolkeBot Role or a configured NSFW Channel.\n" +
                "!w.yandere tags --> Searches Yande.re for tags and gives back 1 Image, only usable with WolkeBot Role or a configured NSFW Channel.\n" +
                "!w.level --> Your Level and XP needed for next Level\n" +
                "!w.rank --> Leaderboard for this Server\n" +
                "!w.noLevel --> disables the level system for you. Use again to enable it again for you.\n" +
                "!w.noPm --> disables the PM notifications for you. Use again to enable it again for you.\n" +
                "!w.pp beatmaplink acc --> Calculates PP for the beatmap with acc, currently nomod only...\n" +
                "!w.setLewd--> Sets the current Channel as the NSFW Channel\n" +
                "!w.cookie @user --> Gives a Cookie to the mentioned User or shows your Cookies if no one is mentioned. (Giving Cookies is only usable with WolkeBot Role)\n" +
                "!w.eatCookie --> Eats a Cookie.\n" +
                "For Any Feedback use the Support Discord Please ^^\n" +
                "If you want to talk with me @mention me with a message :D```";
            bot.sendMessage(message.author, reply, function (err) {
                if (err) return console.log(err);
                bot.sendMessage(message.author, reply2);
            });
            bot.reply(message,'OK, i send you a list of commands over PM.');
            return;
        case "!w.version":
            bot.reply(message, 'I am running on Version ' + config.version);
            return;
        case "!w.add":
            bot.reply(message, "Use this Link to add me to your Server: \<https://discordapp.com/oauth2/authorize?client_id=" + config.client_id + "&scope=bot&permissions=66321471\>");
            return;
        case "!w.bug":
            bot.reply(message, 'Please join the support Discord: https://discord.gg/yuTxmYn to report a Bug.');
            return;
        case "!w.songlist":
{'fraction_non_alphanumeric': 0.13938669852648347, 'fraction_numerical': 0.00826363998407009, 'mean_word_length': 1.7482900136798905, 'pattern_counts': {'":': 10, '<': 5, '<?xml version=': 0, '>': 67, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4705167', 'n_tokens_mistral': 2989, 'n_tokens_neox': 2765, 'n_words': 1074}