renaming of files
This commit is contained in:
parent
534d24ca09
commit
d5b4027931
@ -5,4 +5,4 @@ COPY package*.json ./
|
|||||||
USER node
|
USER node
|
||||||
RUN npm i
|
RUN npm i
|
||||||
COPY --chown=node:node . .
|
COPY --chown=node:node . .
|
||||||
CMD [ "node", "index.js" ]
|
CMD [ "node", "bot.js" ]
|
@ -3,7 +3,7 @@ var fs = require("fs");
|
|||||||
var request = require('request');
|
var request = require('request');
|
||||||
var art = require('ascii-art');
|
var art = require('ascii-art');
|
||||||
var crypto = require('crypto').webcrypto;
|
var crypto = require('crypto').webcrypto;
|
||||||
var randomext = require('./random-ext')
|
var randomext = require('./random')
|
||||||
|
|
||||||
var config = { //edit your shit here
|
var config = { //edit your shit here
|
||||||
server: "irc.supernets.org",
|
server: "irc.supernets.org",
|
||||||
@ -26,6 +26,8 @@ var bot = new irc.Client(config.server, config.botName, {
|
|||||||
floodProtectionDelay: 0
|
floodProtectionDelay: 0
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const timer = ms => new Promise(res => setTimeout(res, ms))
|
||||||
|
|
||||||
const generateRandomString = (amt) => {
|
const generateRandomString = (amt) => {
|
||||||
const chars =
|
const chars =
|
||||||
"AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz1234567890`!@#$%^&*()_+{}|\"\',./ᘈᷞኬᲡ᩶ᐨᅚ⸗⡳ᾟⓅᤲ⧛ሥ⸰⯠ᬨ⧻Შ⼷ᢕ᭄◁ⱉጻ᪅⎑ᘂᏤ⛰⃡";
|
"AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz1234567890`!@#$%^&*()_+{}|\"\',./ᘈᷞኬᲡ᩶ᐨᅚ⸗⡳ᾟⓅᤲ⧛ሥ⸰⯠ᬨ⧻Შ⼷ᢕ᭄◁ⱉጻ᪅⎑ᘂᏤ⛰⃡";
|
||||||
@ -70,18 +72,16 @@ async function ctcp(target, text, amt) {
|
|||||||
|
|
||||||
async function rspam(chan, amt) {
|
async function rspam(chan, amt) {
|
||||||
for(var i=0; i < amt; i++){
|
for(var i=0; i < amt; i++){
|
||||||
bot.say(chan, generateRandomString(60));
|
bot.say(chan, generateRandomString(randomext.integer(100,60)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function uspam(chan, amt){
|
async function uspam(chan, amt){
|
||||||
for(var i=0; i < amt; i++){
|
for(var i=0; i < amt; i++){
|
||||||
bot.say(chan, "0" + randomext.integer(9,0) + randomext.uString(60,40));
|
bot.say(chan, "0" + randomext.integer(9,0) + randomext.uString(120,40));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const timer = ms => new Promise(res => setTimeout(res, ms))
|
|
||||||
|
|
||||||
bot.addListener('message', function(nick, to, text, from) {
|
bot.addListener('message', function(nick, to, text, from) {
|
||||||
var args = text.split(' ');
|
var args = text.split(' ');
|
||||||
if (args[0] === '$help') {
|
if (args[0] === '$help') {
|
Loading…
Reference in New Issue
Block a user