Browse Source

pp detect0r

master
Bd Nugget 1 year ago
parent
commit
5528923ba2
3 changed files with 284 additions and 886 deletions
  1. +6
    -2
      nignogbot.js
  2. +274
    -880
      package-lock.json
  3. +4
    -4
      package.json

+ 6
- 2
nignogbot.js View File

@@ -7,8 +7,6 @@ const { BotMod } = require('./utils');

const app = BotMod.apply(new Telegraf(config.telegram.token));

const log = require('./modules/log').register(app);

app.telegram.getMe().then(bot =>
app.options.username = bot.username);

@@ -23,6 +21,12 @@ app.hears(...require('./modules/tokenGet'));
app.hears(/\b(r8)\b/i, ({ reply }) => reply(`${(~~(Math.random() * 11) + 1)}/10`));
app.hears(/\b(wonder)\b/i, ({ replyWithPhoto, message }) => replyWithPhoto('https://www.billboard.com/files/media/stevie-wonder-smile-performance-a-2017-billboard-1548.jpg', { reply_to_message_id: message.message_id }));

app.on([ 'new_chat_members', 'new_chat_member', 'new_chat_participant' ], (ctx) => {
ctx.telegram.getUserProfilePhotos(ctx.message.from.id).then((x) => {
if (x.total_count === 0) return ctx.reply('Get a profile picture you fucking donkey!');
});
});

app.catch(err => console.error(`FUCK YOu GAY CATCHNIGGER:\n${err.name}: ${err.message}`));

app.startPolling();

+ 274
- 880
package-lock.json
File diff suppressed because it is too large
View File


+ 4
- 4
package.json View File

@@ -10,17 +10,17 @@
"author": "Bdnugget <info@medchem.nl>",
"license": "ISC",
"dependencies": {
"geoip-lite": "^1.2.1",
"geoip-lite": "^1.3.5",
"get-azlyrics": "^1.0.1",
"google-translate-api": "^2.3.0",
"jsdom": "^11.11.0",
"jsdom": "^11.12.0",
"mathjs": "^3.20.2",
"periodic-table": "0.0.8",
"pubchem-access": "^1.0.1",
"ramda": "^0.25.0",
"req": "github:trgwii/req",
"rs-api": "^2.6.4",
"telegraf": "^3.21.2",
"rs-api": "^2.6.5",
"telegraf": "^3.26.0",
"twitter": "^1.7.1"
},
"directories": {

Loading…
Cancel
Save