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
// Configuration: Set the range for the comment interval (in minutes) | |
const MIN_MINUTES = 3; // Minimum wait time | |
const MAX_MINUTES = 17; // Maximum wait time | |
// List of hype, rave-related giveaway comments | |
let comments = [ | |
"Bro I NEED this, I can’t miss this rave.", | |
"This is the one. I’m winning this, I can feel it.", | |
"If I don’t win, I might just cry fr.", | |
"Let’s be real, I’m made for this rave. Just need the ticket.", |
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
let DiscordBotAPIKey = "YOURKEYHERE" | |
let OpenAIAPIKey = "YOURKEYHERE" | |
const { Client, GatewayIntentBits } = require('discord.js'); | |
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent] }); | |
const { Configuration, OpenAIApi } = require("openai"); | |
const configuration = new Configuration({ | |
apiKey: OpenAIAPIKey, |
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
//Fetch list of usernames from followers or following | |
//Instruction: Set ID of profile cards parent to "profileList" | |
var l = document.getElementById("profileList").getElementsByTagName("a") | |
var usernames = [] | |
for(var i=0; i<l.length; i++){ | |
let l2 = l[i].href | |
let match = l2.match(/\/(\w+)\/$/) | |
if(match){ | |
usernames.push(match[1]) | |
} |
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
//Replace this with your array | |
var arr = ["your", "your", "items", "items", "here", "here", "here"]; | |
//Filters out the repeat items | |
arr = [...new Set(arr)] | |
//Create a file named "export.txt" if you'd rather see the result there. | |
//Useful for arrays that are too long to copy from the console | |
//Remove this part if you aren't doing this from Node.js | |
const fs = require("fs") |
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
//Abandoned because I wanted to edit pastes. Turns out their API doesn't support this yet. | |
//Refer to documentation to see what you can pass in parametersObject: https://pastebin.com/api.php | |
var request = require('request'); | |
class Pastebin{ | |
CreatePaste(parametersObject){ | |
var url = "https://pastebin.com/api/api_post.php" | |
var query = "?api_dev_key=" + process.env.PASTEBIN_API_KEY |