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
// ==UserScript== | |
// @name LABYnet all badges | |
// @namespace Erb3 | |
// @match https://laby.net/badges | |
// @grant none | |
// @version 1.0.3 | |
// @author Erb3 | |
// @downloadURL https://gist.githubusercontent.com/Erb3/fee619dd75b53a683f75b5c293aaf7be/raw/LABYnet-all-badges.user.js | |
// @supportURL https://gist.githubusercontent.com/Erb3/fee619dd75b53a683f75b5c293aaf7be/raw/LABYnet-all-badges.user.js | |
// @homepageURL https://gist.githubusercontent.com/Erb3/fee619dd75b53a683f75b5c293aaf7be/raw/LABYnet-all-badges.user.js |
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
local logger = {} | |
---Create a new logger object | |
---@param o table | |
---@return table | |
function logger:new(o) | |
o = o or {} -- create object if user does not provide one | |
setmetatable(o, self) | |
self.__index = self | |
term.clear() |
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 { Client, GatewayIntentBits } = require('discord.js'); | |
require('dotenv').config(); | |
const client = new Client({ | |
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent], | |
}); | |
client.once('ready', () => { | |
console.log('Ready!'); | |
}); |