Skip to content

Instantly share code, notes, and snippets.

@phaticusthiccy
Created January 16, 2021 20:57
Show Gist options
  • Save phaticusthiccy/1a12ce73b263941d2e9a6cc5b978953f to your computer and use it in GitHub Desktop.
Save phaticusthiccy/1a12ce73b263941d2e9a6cc5b978953f to your computer and use it in GitHub Desktop.
/* Codded by @phaticusthiccy
Telegram: t.me/phaticusthiccy
Instagram: www.instagram.com/kyrie.baran
*/
const Asena = require('../events');
const {MessageType, GroupSettingChange} = require('@adiwajshing/baileys'); // Boredom 😬
Asena.addCommand({pattern: 'locate', fromMe: true}, (async (message, match) => {
var r_text = new Array ();
r_text[0] = "degreesLatitude: 24.121231, degreesLongitude: 55.1121221"; // Actually, I don't know where is this place..
r_text[1] = "degreesLatitude: 8.838637, degreesLongitude: -13.721434"; // U too homie
var i = Math.floor(2*Math.random()) // Random func. 🤪
await message.sendMessage(`My Location! ${r_text[i]}`, MessageType.location); // It sends ur location. Cool
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment