Skip to content

Instantly share code, notes, and snippets.

View juanigallo's full-sized avatar
🚀

Juani Gallo juanigallo

🚀
View GitHub Profile
[
{
id: 1,
name: "Prueba 1"
},
{
id: 2,
name: "Prueba 2"
}
]
import {
AddSubmission,
VouchAdded,
VouchRemoved
} from "../generated/ProofOfHumanity/ProofOfHumanity";
import { User } from "../generated/schema";
export function handleVouchAdded(event: VouchAdded): void {
let user = User.load(event.transaction.from.toHex());
// Instanciamos una nueva entidad
const nameEntity = new Entity();
// Instanciamos un texto con el valor @JuaniGallo
const myName = new TextShape("@JuaniGallo");
// Asociamos nuestro nombre a la entidad que creamos al principio
nameEntity.addComponent(myName);
// Posicionamos nuestra entidad principal
import * as utils from "@dcl/ecs-scene-utils";
//Text
const nameEntity = new Entity();
const myName = new TextShape("@JuaniGallo");
nameEntity.addComponent(myName);
nameEntity.addComponent(new Transform({ position: new Vector3(8, 1, 8) }));
nameEntity.addComponent(
const axios = require("axios");
const url =
"https://www.apple.com/shop/pickup-message-recommendations?mts.0=regular&mts.1=compact&cppart=UNLOCKED/US&searchNearby=true&store=R623&product=MQ933LL/A";
let lastMessageSend = 0;
const botId = "";
const chatId = "";
const jsonMap = {