Skip to content

Instantly share code, notes, and snippets.

View TheArmagan's full-sized avatar

Kıraç Armağan Önal TheArmagan

View GitHub Profile
@TheArmagan
TheArmagan / owot-armaganbot.md
Last active May 2, 2021 18:40
Command List

[OWOT] Armagan's Bot

Commands

  • h!draw: It allows you to draw images to owot!
    • -x "<number>": X Position of the image.
    • -y "<number>": Y position of the image.
    • -url "<url>": Image url.
    • -s "[number]": Scale factor of the image. (Maximum: 3, Minimum: 0.01, Default: 0.5, Optinal)
    • -p: Changes scaling method to NEAREST_NEIGHBOR so basicly works much better with pixelarts. (Optinal)
  • -c: Centers the output image based on given position. (Optinal)
@TheArmagan
TheArmagan / Armagan's Spotify Presence - Usage.md
Last active April 2, 2021 16:14
Armagan's Spotify Presence - Usage

Armagan's Spotify Presence

BASE URL: https://spotifypresence.armagan.rest/

EMBED API

Base URL: /embed

@TheArmagan
TheArmagan / default.colormap.json
Created March 4, 2021 04:49
Default color map for the pixelart generator of the armagan's nbt app.
[
{
"name": "concrete",
"meta": 15,
"color": "080A0F"
},
{
"name": "concretepowder",
"meta": 15,
"color": "16171D"
@TheArmagan
TheArmagan / Code.gs
Last active December 10, 2022 16:16
[NEW] Google Forms Send Post Request On Submit
const FETCH_POST_URL = "http://requestbin.net/r/16zlov01";
function onSubmit(e) {
let currentForm = FormApp.getActiveForm();
let allFormResponses = currentForm.getResponses();
let lastestResponse = allFormResponses[allFormResponses.length - 1];
let formResponses = lastestResponse.getItemResponses();
let _formId = lastestResponse.getId();
let _formTitle = currentForm.getTitle();