aboutsummaryrefslogtreecommitdiff
path: root/src/main.js
blob: da96639198563ae1fbdf1a77be14366f0520ea8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require('dotenv').config();

const { Client } = require('discord.js');

const client = new Client();
const CMD_PREFIX = "!"
client.on('message', (message) => {
    if (message.author.bot) return;
    if (message.content.startsWith(CMD_PREFIX)) {

    } else {
        message.reply(parseCasualMessage(message));
    }
});

function parseCasualMessage(message) {
    const {content} = message;
    switch(content.trim()) {
        case 'hello': return `Hey ${message.author} 🙋‍♂️. How Are You?`;
        case 'ഹലോ': return `ഹല്ലാ.... ഇതാരാ ${message.author}യോ... സുഖം തന്നെ?`;
        case 'എന്തൊക്കെ ഉണ്ട് വിശേഷം':
        case 'enthokke und vishesham' :
        case 'enthokkeyund vishesham' :  return `അങ്ങിനെ പോണു...🤷‍♂️ സുഖങ്ങളൊക്കെ തന്നെ?`;
        case 'മനുസ്സനല്ലേ പുള്ളെ' :
        case 'manusanalle pulle': return `ഇറച്ചിയും ബറോട്ടയും വേണായിരിക്കും... 🤣🤣🤣`;
        case 'നീ ആരാ':
        case 'nee aara':  return `താൻ ആരാണെന്ന് തനിക്ക് അറിയാന്മേലെങ്കിൽ താൻ എന്നോട് ചോയ്ക്ക് താൻ ആരാണെന്ന്??? തനിക്ക് ഞാൻ പറഞ്ഞു തരാം താൻ ആരാണെന്ന്... 🤪🤪`;
    }
}

client.login(process.env.LUL_BOT_TKN)
    .then(() => {
        console.log("BOT Logged in");
    })
    .catch((error) => {
        console.error("BOT Login Failed ", error);
    });