import fetch from "node-fetch";
async function updateBanner() {
const BOT_TOKEN = "";
try {
const response = await fetch("https://discord.com/api/v10/users/@me", {
method: "PATCH",
headers: {
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
interaction.channel.createWebhook({ | |
name: "minesa", | |
avatar: "https://media.discordapp.net/attachments/861208192121569280/1075861709610299412/106327680.png", | |
reason: "This is needed for now" | |
}).then(webhook => console.log(webhook.url)) | |
const { AttachmentBuilder, ButtonBuilder, ActionRowBuilder } = require("discord.js"); | |
const file = new AttachmentBuilder() | |
.setFile("https://cdn.discordapp.com/attachments/861208192121569280/1026236427622695013/Adobe_Express_20221002_2352210_1.png") |
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
<script> // #84bb81 | |
const // #a04752 | |
Uppercase // #db8043 | |
method() // #9880c1 | |
.property // #cedff2 | |
this // #f7f9fc | |
text // #eff1f4 | |
"String" // #87b4e8 | |
// comments // #9a9ca1 | |
</script> // Mobile Version |
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
<div id="tiles"></div> | |
<h1 id="title" class="centered"> | |
The name of the game is | |
<span class="fancy">Chess</span>. | |
</h1> | |
<i id="icon" class="fa-solid fa-chess centered"></i> | |
<a id="source-link" class="meta-link" href="https://cdpn.io/YzXOGpm" target="_blank"> |
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
function factorial(n) { | |
let answer = 1; | |
if (n == 0 || n == 1) { | |
return answer; | |
} else { | |
for (var i = n; i >= 1; i--) { | |
answer = answer * i; | |
} | |
return answer; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>@neodevils</title> | |
<link rel="stylesheet" href="style.css"> | |
</head> |
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 | |
# Hata alırsa durdur | |
set -e | |
# Eğer kaeru dizini varsa, .env dosyasını yedekle ve güncelle; yoksa, repo'yu klonla | |
if [ -d "/home/container/kaeru" ]; then | |
echo "Kaeru dizini bulundu, güncellemeleri çekiyoruz..." | |
cd /home/container/kaeru | |
# .env dosyası varsa yedekle |
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
import discordRPC from "discord-rpc"; | |
const { Client, register } = discordRPC; | |
const CLIENT_ID = "736561919292473454"; // Your Discord Bot ID | |
const RPC = new Client({ transport: "ipc" }); | |
register(CLIENT_ID); | |
async function activity() { | |
if (!RPC) return; |
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
/* | |
Author: @neodevils | |
Feel free to share it for others to don't deal with this issue when launching their activity on bot! | |
*/ | |
import { REST } from "@discordjs/rest"; | |
import { Routes } from "discord-api-types/v10"; | |
import { CLIENT_ID, TOKEN } from "./config.js"; | |
// Replace these with your actual values or fetch it from your config.js/json file |
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
import fs from "fs"; | |
import path from "path"; | |
import { MongoClient } from "mongodb"; | |
// Replace these with your own values | |
const mongoUri = DATABASE_URI_HERE; // MongoDB connection URI | |
const dbName = "test"; // Database name | |
const collectionName = "users"; // Collection name | |
const folderPath = "./data"; // Path to the folder containing JSON files |
OlderNewer