βοΈ Build your own Discord bots! Now in beta! βοΈ No hosting required π¦ Pylon.bot π¦
Build and deploy Discord bots in minutes using our simple online studio.
Build your bot in the browser.
Enjoy built-in revision history, syntax highlighting, code completion, logging, and more!
Build, test, deploy, repeat. When you hit Save, your bot is deployed instantly and suffers no event loss during deployments.
KV store, webhooks, and more!
Extend your botβs functionality with our built-in persistent storage, scheduled events, and webhooks!
Always on, no hassle.
Under the hood, Pylon uses a lightning-fast JavaScript V8 runtime to power your bots. In addition, the Pylon SDK is fully typed, meaning TypeScript auto-completions and type-checking are built in!
discord.registerEventHandler("MESSAGE_CREATE", async (msg) => {
if (msg.content === "!ping") {
await msg.reply("Pong!");
}
})
discord.registerEventHandler("MESSAGE_CREATE", async (msg) => {
if (msg.content === "!catfact") {
// Request a random fact about cats
const req = await fetch("https://catfact.ninja/fact");
// Parse the request's JSON body:
const data = await req.json();
// Example data:
// { "fact": "Cats have supersonic hearing", "length": 28 }
// Reply to the command with the random cat fact
await msg.reply(data['fact'])
}
})
discord.registerEventHandler("MESSAGE_CREATE", async msg => {
if (msg.content === "!info") {
const embed = new discord.Embed();
embed.setTitle(msg.author.getTag()).setColor(0x00ff00);
embed.setDescription("User Information Example");
embed.setThumbnail({ url: msg.author.getAvatarUrl() });
embed.addField({
name: "User ID",
value: msg.author.id,
inline: false
});
embed.setTimestamp(new Date().toISOString());
await msg.reply({ content: "", embed: embed });
}
});
discord.registerEventHandler("MESSAGE_CREATE", async msg => {
if (!msg.content.toLowerCase().includes("love pylon")) {
return;
}
const newMessage = await msg.reply(`I'm flattered!`);
await newMessage.addReaction("π");
});
Psst! Check out what else Pylon is capable of at the docs.
5
3 reviews
Reviews can be left only by registered users. All reviews are moderated by Top.gg moderators. Please make sure to check our guidelines before posting.
5 stars
3
4 stars
0
3 stars
0
2 stars
0
1 star
0
Details
Prefix
*
Socials
Tags
Creators