Tovade
Having issues?
Join my discord server
Rock Paper scissors
Play rock paper scissors with buttons!
const { rps } = require("tovade");
const { Client } = require("discord.js");
const client = new Client();
client.on("message", (message) => {
if (message.content.startsWith("!rps")) {
new rps(message);
}
});
client.login("YOUR TOKEN");
Snake Game
const { snakegame } = require("tovade");
const { Client } = require("discord.js");
const client = new Client();
client.on("message", (message) => {
if (message.content.startsWith("!snake")) {
const sn = new snakegame({ food: "🍎", snake: "🟩" });
sn.start(message);
}
});
client.login("YOUR TOKEN");
Emojify
const { emojify } = require("tovade");
emojify("Hi");
Flip
const { flip } = require("tovade");
flip("Hi");
Would You Rather
const { wyr } = require("tovade");
const { Client } = require("discord.js");
const client = new Client();
client.on("message", async (message) => {
if (message.content.startsWith("!snake")) {
await wyr(message);
}
});
client.login("YOUR TOKEN");