Skip to content

Instantly share code, notes, and snippets.

View 2JJ1's full-sized avatar
🤔
I live online

2JJ1

🤔
I live online
View GitHub Profile
@2JJ1
2JJ1 / YouTube Comment Bot
Created February 5, 2025 21:39
Tailored to rave giveaways, but you can change comments to whatever you want
// 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.",
@2JJ1
2JJ1 / Make A Discord AI Chatbot with OpenAI
Created February 24, 2023 19:47
Make A Discord AI Chatbot with OpenAI
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,
@2JJ1
2JJ1 / Instagram followers who don't follow back.js
Created August 30, 2022 13:07
Instagram followers who don't follow back
//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])
}
//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")
//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