youtube: '880218394199220334'
youtubedev: '880218832743055411'
poker: '755827207812677713'
betrayal: '773336526917861400'
fishing: '814288819477020702'
chess: '832012774040141894'
chessdev: '832012586023256104'
lettertile: '879863686565621790'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Temporarily add a normal upstream DNS resolver | |
/ip dns set servers=1.1.1.1,1.0.0.1 | |
# CA certificates extracted from Mozilla | |
/tool fetch url=https://curl.se/ca/cacert.pem | |
# Import the downloaded ca-store (127 certificates) | |
/certificate import file-name=cacert.pem passphrase="" | |
# Set the DoH resolver to cloudflare content filtering |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tunservers="Ashburn,_VA,_US:216.66.22.2 Calgary,_AB,_CA:216.218.200.58 Chicago,_IL,_US:184.105.253.14 Dallas,_TX,_US:184.105.253.10 Denver,_CO,_US:184.105.250.46 Fremont,_CA,_US:72.52.104.74 Fremont,_CA,_US:64.62.134.130 Honolulu,_HI,_US:64.71.156.86 Kansas,_City,_MO,_US:216.66.77.230 Los,_Angeles,_CA,_US:66.220.18.42 Miami,_FL,_US:209.51.161.58 New,_York,_NY,_US:209.51.161.14 Phoenix,_AZ,_US:66.220.7.82 Seattle,_WA,_US:216.218.226.238 Toronto,_ON,_CA:216.66.38.58 Winnipeg,_MB,_CA:184.105.255.26 Amsterdam,_NL:216.66.84.46 Berlin,_DE:216.66.86.114 Budapest,_HU:216.66.87.14 Frankfurt,_DE:216.66.80.30 Lisbon,_PT:216.66.87.102 London,_UK:216.66.80.26 London,_UK:216.66.88.98 Paris,_FR:216.66.84.42 Prague,_CZ:216.66.86.122 Stockholm,_SE:216.66.80.90 Warsaw,_PL:216.66.80.162 Zurich,_CH:216.66.80.98 Hong,_Kong,_HK:216.218.221.6 Singapore,_SG:216.218.221.42 Tokyo,_JP:74.82.46.6 Djibouti,_City,_DJ:216.66.87.98 Johannesburg,_ZA:216.66.87.134 Bogota,_CO:216.66.64.154 Sydney,_NSW,_AU:216.218.142.50 Dubai,_AE: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
run = "bash start.sh" | |
language = "bash" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm init -y && npm i --save-dev node@16 && npm config set prefix=$(pwd)/node_modules/node && export PATH=$(pwd)/node_modules/node/bin:$PATH | |
rm -rf node_modules/ | |
npm i | |
npm rebuild | |
npm run start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo Downloading NodeJS 16 | |
npm init -y && npm i --save-dev node@16 && npm config set prefix=$(pwd)/node_modules/node && export PATH=$(pwd)/node_modules/node/bin:$PATH | |
npm i | |
npm run start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Create a text progress bar | |
* @param {Number} value - The value to fill the bar | |
* @param {Number} maxValue - The max value of the bar | |
* @param {Number} size - The bar size (in letters) | |
* @return {{Bar: string, percentageText: string}} - The bar | |
*/ | |
module.exports = (value, maxValue, size) => { | |
const percentage = value / maxValue; // Calculate the percentage of the bar | |
const progress = Math.round(size * percentage); // Calculate the number of square caracters to fill the progress side. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { MessageEmbed } = require("discord.js"); | |
module.exports = { | |
name: "chess", | |
description: "Play chess with your friends! or bots.", | |
usage: "", | |
permissions: { | |
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], | |
member: [], | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
client.on('message', message => { //this event is fired, whenever the bot sees a new message | |
if (message.isMemberMentioned(client.user)) { //we check, whether the bot is mentioned, client.user returns the user that the client is logged in as | |
const replies = new Discord.MessageEmbed() | |
.setColor('#0099ff') | |
.setTitle('Nathans bot') | |
.setURL('https://cynathans.com') | |
.setAuthor('Some name', 'https://i.imgur.com/wSTFkRM.png', 'https://discord.js.org') | |
.setDescription('Some description here') | |
.setThumbnail('https://i.imgur.com/wSTFkRM.png') | |
.addFields( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { MessageEmbed } = require("discord.js"); | |
require("moment-duration-format"); | |
const cpuStat = require("cpu-stat"); | |
const moment = require("moment"); | |
module.exports = { | |
name: "stats", | |
description: "Get information about the bot", | |
usage: "", | |
permissions: { |
NewerOlder