⚒️ 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개
리뷰는 등록된 사용자만 남길 수 있습니다. 모든 리뷰는 Top.gg의 사이트 중재자가 관리합니다. 게시하기 전 저희의 지침을 반드시 확인해 주세요.
별점 5점
3
별점 4점
0
별점 3점
0
별점 2점
0
별점 1점
0