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
// For Japanese aikotoba, use https://hpmobile.jp/app/nekoatsume/neko_daily.php | |
const apiUrl = "https://hpmobile.jp/app/nekoatsume/neko_daily_en.php"; | |
const webhookUrl = | |
"https://discord.com/api/webhooks/.../..."; | |
async function fetchNekoAtsumeData() { | |
try { | |
// mimic game's get request | |
const response = await fetch(apiUrl, { | |
method: "GET", |
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
void main(List<String> arguments) { | |
print('Hello world!'); | |
} |
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
#!/usr/bin/python | |
# Usage: danbooru-tag-counter.py [tags...] | |
import requests | |
import sys | |
import base64 | |
# Define your username and API key | |
username = "" | |
api_key = "" |
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
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"time" | |
) | |
func main() { | |
rand.Seed(time.Now().UnixNano()) |