<commit_before>// Load up the discord.js library
const Discord = require("discord.js");

// Load library for manipulating dates and times
const moment = require('moment');

// Load library for making HTTP GET requests
const rp = require('request-promise');

// Load sqlite3 library
const sqlite3 = require("sqlite3").verbose();

// Load sqlite file of gym info generated elsewhere (requires columns "name", "latitude", "longitude"
const db = new sqlite3.Database('gymdetails');

// node windows event logger
var EventLogger = require('node-windows').EventLogger;

// start a new logger
var log = new EventLogger('PoGo Raid Organizer');

// Create the main client object with methods to interface with Discord
const client = new Discord.Client();

// Here we load the config.json file that contains our token and our prefix values. 
const config = require("./config.json");
// config.token contains the bot's token
// config.prefix contains the message prefix.
// config.gmapsApiKey contains the bot's Google Maps Static API key

var isCreateChannelOn = false;
var isAutoRaidChannelOn = false;
var isReplaceGymHuntrBotPost = true;
var isReplaceRaidBotPost = true;
var isPurgeEnabled = true;
var isMapImageEnabled = false;

const gmapsUrlBase = 'https://www.google.com/maps/search/?api=1&query=';
const gmapsState = 'NJ';

// info on GymHuntrBot
const gymHuntrbotName = "GymHuntrBot";

// info on GymHuntrBot
const huntrbotName = "HuntrBot";

// info on PokeAlarm Raid notification bot
const raidBotName1 = "Raid"; // check for include
const raidBotName2 = "Egg"; // check for match
const raidBotChannelName = "matinadesu-raid-bot";
const spawnPokeAlarmChannelName = "super-rare-spawns";
const exRaidChannelName = "all_raids_ex_only";
const raidChannelNames = ['raid_channel_bot', 'all-raids', 'all_raids_ex_only'];

const richEmbedSelfName = 'RaidChannelBot';

var approvedRareSpawnPokemon = ['Unown', 'Tyranitar', 'Blissey', 'Dragonite', 'Ampharos', 'Slaking'];

// note that the approved pokemon list is not stored in a database and resets whenever the bot restarts
var approvedPokemon = ['lugia', 'articuno', 'zapdos', 'moltres', 'tyranitar', 'mew', 'mewtwo', 'raiku', 'entei', 'suicune', 'ho-oh', 'celebi']; // lower case

// how pokemon names will be shortened for use in channel names
const shortPokemonNames = [
    ['articuno', 'arti'],
    ['zapdos', 'zap'],
    ['moltres', 'molt'],
    ['tyranitar', 'ttar'],
    ['suicune', 'suic'],
    ['venusaur', 'venu'],
    ['charizard', 'chari'],
    ['blastoise', 'blast'],
    ['snorlax', 'snorl']
];

// how location names will be shortened for use in channel names
const shortLocNames = [
    ['princeton-university', 'pu'],
    ['princeton', 'pton'],
    ['carnegie', 'carn'],
    ['west-windsor', 'wwind'],
    ['plainsboro', 'pboro'],
    ['the-', ''],
    ['-the', ''],
    ['the', ''],
]; // note, as coded, this replaces only the first instance of [0] with [1]
<commit_msg>remove dragonite and ampharos from (double) everyone tag<commit_after>// Load up the discord.js library
const Discord = require("discord.js");

// Load library for manipulating dates and times
const moment = require('moment');

// Load library for making HTTP GET requests
const rp = require('request-promise');

// Load sqlite3 library
const sqlite3 = require("sqlite3").verbose();

// Load sqlite file of gym info generated elsewhere (requires columns "name", "latitude", "longitude"
const db = new sqlite3.Database('gymdetails');

// node windows event logger
var EventLogger = require('node-windows').EventLogger;

// start a new logger
var log = new EventLogger('PoGo Raid Organizer');

// Create the main client object with methods to interface with Discord
const client = new Discord.Client();

// Here we load the config.json file that contains our token and our prefix values. 
const config = require("./config.json");
// config.token contains the bot's token
// config.prefix contains the message prefix.
// config.gmapsApiKey contains the bot's Google Maps Static API key

var isCreateChannelOn = false;
var isAutoRaidChannelOn = false;
var isReplaceGymHuntrBotPost = true;
var isReplaceRaidBotPost = true;
var isPurgeEnabled = true;
var isMapImageEnabled = false;

const gmapsUrlBase = 'https://www.google.com/maps/search/?api=1&query=';
const gmapsState = 'NJ';

// info on GymHuntrBot
const gymHuntrbotName = "GymHuntrBot";

// info on GymHuntrBot
const huntrbotName = "HuntrBot";

// info on PokeAlarm Raid notification bot
const raidBotName1 = "Raid"; // check for include
const raidBotName2 = "Egg"; // check for match
const raidBotChannelName = "matinadesu-raid-bot";
const spawnPokeAlarmChannelName = "super-rare-spawns";
const exRaidChannelName = "all_raids_ex_only";
const raidChannelNames = ['raid_channel_bot', 'all-raids', 'all_raids_ex_only'];

const richEmbedSelfName = 'RaidChannelBot';

var approvedRareSpawnPokemon = ['Unown', 'Tyranitar', 'Blissey', 'Slaking'];

// note that the approved pokemon list is not stored in a database and resets whenever the bot restarts
var approvedPokemon = ['lugia', 'articuno', 'zapdos', 'moltres', 'tyranitar', 'mew', 'mewtwo', 'raiku', 'entei', 'suicune', 'ho-oh', 'celebi']; // lower case

// how pokemon names will be shortened for use in channel names
const shortPokemonNames = [
    ['articuno', 'arti'],
    ['zapdos', 'zap'],
    ['moltres', 'molt'],
    ['tyranitar', 'ttar'],
    ['suicune', 'suic'],
    ['venusaur', 'venu'],
    ['charizard', 'chari'],
    ['blastoise', 'blast'],
    ['snorlax', 'snorl']
];

// how location names will be shortened for use in channel names
const shortLocNames = [
    ['princeton-university', 'pu'],
    ['princeton', 'pton'],
    ['carnegie', 'carn'],
    ['west-windsor', 'wwind'],
    ['plainsboro', 'pboro'],
    ['the-', ''],
    ['-the', ''],
    ['the', ''],
]; // note, as coded, this replaces only the first instance of [0] with [1]

{'fraction_non_alphanumeric': 0.14339109751953788, 'fraction_numerical': 0.0030581039755351682, 'mean_word_length': 4.564272211720227, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '1471185', 'n_tokens_mistral': 1923, 'n_tokens_neox': 1865, 'n_words': 611}