Skip to content

Instantly share code, notes, and snippets.

@Override
public void processUpdates(List<Update> updates) {
for (Update update : updates) {
processUpdate(update);
}
}
private void processUpdate(Update update) {
if (update == null) {
return;
@aNNiMON
aNNiMON / .gitignore
Last active February 17, 2024 17:59
Telefeed RSS
*.pyc
config.yml
feed.db
@aNNiMON
aNNiMON / .gitignore
Last active March 19, 2025 20:33
PicSorter
__pycache__
.idea
input
library
logs
images.db
@aNNiMON
aNNiMON / .gitignore
Last active September 19, 2024 13:24
LutGen Nim
bin
*.sh
@aNNiMON
aNNiMON / .usage.own
Last active September 18, 2024 20:17
OpenAI API
include "own-modules/openai/OpenAI.own"
OPENAI_API_KEY = getenv("OPENAI_API_KEY", "")
if OPENAI_API_KEY.isEmpty() {
println "OPENAI_API_KEY is required"
exit(1)
}
openai = new OpenAI(OPENAI_API_KEY)
extract(isOk, response) = openai.chatCompletionsBasic(