mirror of
https://github.com/Technicolor-creamsicle/Osselbot.git
synced 2024-11-18 02:05:54 -05:00
aaaa
This commit is contained in:
parent
c8e2828043
commit
816118633d
58
npm-shrinkwrap.json
generated
58
npm-shrinkwrap.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@technicolor-creamsicle/osselbot",
|
"name": "@technicolor-creamsicle/osselbot",
|
||||||
"version": "2.0.4",
|
"version": "2.1.0",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -60,11 +60,57 @@
|
|||||||
"ws": "^7.2.1"
|
"ws": "^7.2.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"encoding": {
|
||||||
|
"version": "0.1.12",
|
||||||
|
"resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz",
|
||||||
|
"integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=",
|
||||||
|
"requires": {
|
||||||
|
"iconv-lite": "~0.4.13"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"es6-promise": {
|
||||||
|
"version": "4.2.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz",
|
||||||
|
"integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w=="
|
||||||
|
},
|
||||||
"event-target-shim": {
|
"event-target-shim": {
|
||||||
"version": "5.0.1",
|
"version": "5.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz",
|
||||||
"integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ=="
|
"integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ=="
|
||||||
},
|
},
|
||||||
|
"iconv-lite": {
|
||||||
|
"version": "0.4.24",
|
||||||
|
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
|
||||||
|
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
|
||||||
|
"requires": {
|
||||||
|
"safer-buffer": ">= 2.1.2 < 3"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"is-stream": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz",
|
||||||
|
"integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ="
|
||||||
|
},
|
||||||
|
"isomorphic-fetch": {
|
||||||
|
"version": "2.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz",
|
||||||
|
"integrity": "sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=",
|
||||||
|
"requires": {
|
||||||
|
"node-fetch": "^1.0.1",
|
||||||
|
"whatwg-fetch": ">=0.10.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"node-fetch": {
|
||||||
|
"version": "1.7.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.3.tgz",
|
||||||
|
"integrity": "sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==",
|
||||||
|
"requires": {
|
||||||
|
"encoding": "^0.1.11",
|
||||||
|
"is-stream": "^1.0.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"mime-db": {
|
"mime-db": {
|
||||||
"version": "1.44.0",
|
"version": "1.44.0",
|
||||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz",
|
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz",
|
||||||
@ -106,6 +152,11 @@
|
|||||||
"resolved": "https://registry.npmjs.org/prism-media/-/prism-media-1.2.2.tgz",
|
"resolved": "https://registry.npmjs.org/prism-media/-/prism-media-1.2.2.tgz",
|
||||||
"integrity": "sha512-I+nkWY212lJ500jLe4tN9tWO7nRiBAVdMv76P9kffZjYhw20raMlW1HSSvS+MLXC9MmbNZCazMrAr+5jEEgTuw=="
|
"integrity": "sha512-I+nkWY212lJ500jLe4tN9tWO7nRiBAVdMv76P9kffZjYhw20raMlW1HSSvS+MLXC9MmbNZCazMrAr+5jEEgTuw=="
|
||||||
},
|
},
|
||||||
|
"safer-buffer": {
|
||||||
|
"version": "2.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
|
||||||
|
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
|
||||||
|
},
|
||||||
"setimmediate": {
|
"setimmediate": {
|
||||||
"version": "1.0.5",
|
"version": "1.0.5",
|
||||||
"resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz",
|
||||||
@ -116,6 +167,11 @@
|
|||||||
"resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz",
|
||||||
"integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw=="
|
"integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw=="
|
||||||
},
|
},
|
||||||
|
"whatwg-fetch": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-9GSJUgz1D4MfyKU7KRqwOjXCXTqWdFNvEr7eUBYchQiVc744mqK/MzXPNR2WsPkmkOa4ywfg8C2n8h+13Bey1Q=="
|
||||||
|
},
|
||||||
"ws": {
|
"ws": {
|
||||||
"version": "7.3.0",
|
"version": "7.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/ws/-/ws-7.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/ws/-/ws-7.3.0.tgz",
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"discord.js": "^12.1.1",
|
"discord.js": "^12.1.1",
|
||||||
|
"es6-promise": "^4.2.8",
|
||||||
|
"isomorphic-fetch": "^2.2.1",
|
||||||
"n": "^6.4.0",
|
"n": "^6.4.0",
|
||||||
"pretty-ms": "^6.0.1"
|
"pretty-ms": "^6.0.1"
|
||||||
},
|
},
|
||||||
|
12
src/google.json
Normal file
12
src/google.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"type": "service_account",
|
||||||
|
"project_id": "osselbot",
|
||||||
|
"private_key_id": "1fdbf58f404694d4512626a9e67d47b9d83f0306",
|
||||||
|
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDdEFD/oDhHbxYN\niTWS/lI8ZXOyhNAQd5hH4xtU2gjigONpAJfqEhy1C5+7GrYflxXWB+fn8fm1ujrA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q0icqr1Zt1jmdKcv7c0CkzKSITMBJlkvWgCEKr2gLQToc9\nBV5AFckKfP69kARsVtxlFN+Q0ksqje4UgMUKB2n2cRHp3IxZugPcz+wMrwKBgCE3\nlEifiIVmlTE7cGtaf7x4C5E1LmuLpGGz+y6a8JniT+SFXOs/wPjG2MFd7Y8ERJ/L\ngzQYOqDKyJnf1FuXgrnlQyKynpwuYz5PiPt2KDBafbIdIDwkP3TgHDIZuEyJ82kR\nMesDR11arASkOJpOTmudon9afjULuojExMR0S4BpAoGBAPVOHNecGEL0wPn2R39y\nSgXClnpPljejqgebxkgfcrfD0yj1l/EI+1McYxneltD/3AoIa9SzA4ALhtn3Vuwh\nho7XuQNM1n8zB5TMO8w0NAyCkAxCmBjC+RGM+lzMrioAgZnNZ54WMd9D0BlwMfvY\nnOBzJ+p56oQilXkPx3WDKuja\n-----END PRIVATE KEY-----\n",
|
||||||
|
"client_email": "osselbot@osselbot.iam.gserviceaccount.com",
|
||||||
|
"client_id": "103626091432826213172",
|
||||||
|
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
|
||||||
|
"token_uri": "https://oauth2.googleapis.com/token",
|
||||||
|
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
|
||||||
|
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/osselbot%40osselbot.iam.gserviceaccount.com"
|
||||||
|
}
|
18
src/index.js
18
src/index.js
@ -3,8 +3,15 @@
|
|||||||
const Discord = require("discord.js");
|
const Discord = require("discord.js");
|
||||||
const prettyMilliseconds = require('pretty-ms');
|
const prettyMilliseconds = require('pretty-ms');
|
||||||
const config = require("./config.json");
|
const config = require("./config.json");
|
||||||
// This is the client
|
|
||||||
|
const fetch = require('isomorphic-fetch');
|
||||||
|
|
||||||
|
// This is making clients
|
||||||
const client = new Discord.Client();
|
const client = new Discord.Client();
|
||||||
|
const YOUR_ROOT_FOLDER = '1YmJULtf9q1FwY_sZGc8s5WlY2VnfHx1Q',
|
||||||
|
PATH_TO_CREDENTIALS = path.resolve(`./google.json`);
|
||||||
|
const creds_service_user = require(PATH_TO_CREDENTIALS);
|
||||||
|
|
||||||
|
|
||||||
function activity() {
|
function activity() {
|
||||||
client.user.setActivity(`${client.users.cache.size} of you horrible people`,{ type: 'LISTENING' });
|
client.user.setActivity(`${client.users.cache.size} of you horrible people`,{ type: 'LISTENING' });
|
||||||
@ -140,6 +147,12 @@ client.on("message", async message => {
|
|||||||
return message.channel.send("Im sorry but we cant have nice things...")
|
return message.channel.send("Im sorry but we cant have nice things...")
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
if(command === "quote") {
|
||||||
|
if(toLowerCase(args[0]) === "add") {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
if (command === "version") {
|
if (command === "version") {
|
||||||
return message.channel.send("``` ________________________________________\n \
|
return message.channel.send("``` ________________________________________\n \
|
||||||
@ -201,3 +214,6 @@ if(process.argv.slice(2).includes("--TEST")) {
|
|||||||
|
|
||||||
//Logging in the bot
|
//Logging in the bot
|
||||||
client.login(config.token)
|
client.login(config.token)
|
||||||
|
const googleDriveInstance = new NodeGoogleDrive({
|
||||||
|
ROOT_FOLDER: YOUR_ROOT_FOLDER
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user