ssh config

This commit is contained in:
lickthecheese 2019-09-24 18:41:12 -04:00
parent f3cd97a82d
commit 68c6af5742
6 changed files with 77 additions and 1 deletions

View file

@ -3,4 +3,4 @@ AddKeysToAgent yes
Host git-tor-alias
User gitserv
HostName ltcpiz23dznrv62p.onion
ProxyCommand nc -X 5 -x 127.0.0.1:9050 %h %p
ProxyCommand nc -x 127.0.0.1:9050 %h %p

2
git/ddm-bot/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
auth.json
node_modules/

2
git/ddm-bot/README.md Normal file
View file

@ -0,0 +1,2 @@
# Ultra Bot
discord bot

57
git/ddm-bot/bot.js Normal file
View file

@ -0,0 +1,57 @@
const Eris = require('eris');
const auth = require('./auth.json');
const config = require('./config.json')
var bot = new Eris(auth.token);
bot.on('ready', () => { // ooh erisjs with those modern js syntax
console.log('ready lol');
});
bot.on('messageCreate', (msg) => {
var mContent = msg.content;
var isAdmin = (config.allowList.indexOf(msg.author.id) >= 0)
console.log(msg.author.id)
console.log(mContent)
if (mContent.substring(0, 1) == '~') {
//bot.createMessage(msg.channel.id, "hello you have called apon the bot");
var args = mContent.substring(1).split(' ');
var cmd = args[0];
args = args.splice(1).join(" ");
switch(cmd) {
case 'echo':
bot.createMessage(msg.channel.id, args);
break;
case 'welcome':
sendWelcome(msg.author);
break;
case 'help':
bot.createMessage(msg.channel.id, {
embed: {
color: 0x1111ff,
title: "Help",
description: "Commands: \nhelp - get this\necho - repeat what you say\nwelcome - send a nice welcome message"
}
});
break;
}
}
})
bot.on('guildMemberAdd', (guild, member) => {
sendWelcome(member);
})
function sendWelcome(user) {
bot.createMessage("614829461267021850", {
content: "",
embed: {
color: 0x1111FF,
title: "Welcome, "+user.username+" to GAMESONLINEXD",
description: "Don't forget to read the rules!"
}
})
}
bot.connect();

8
git/ddm-bot/config.json Normal file
View file

@ -0,0 +1,8 @@
{
"allowList": [
"296736767158255616", "//lickthecheese",
"543047770936967168", "//ultrajo07"
],
"helpGeneralTitle": "Help",
"helpGeneral": "Here is a list of commands:\nhelp - get this\necho - repeat what you said\nwelcome - do the welcome message again for some reason"
}

7
git/ddm-bot/runBot.sh Executable file
View file

@ -0,0 +1,7 @@
cd /Super-Embeds/
while [ 1 ]; do
node bot.js
echo '[Super-Embeds]: Critical: Bot STOPED, attemting to restart.'
sleep 3
done