Logo for Something Alpha

Upvote Something Alpha


A bot which you can program it's features using JavaScript.

Back to Something Alpha
Something Alpha

Something Alpha is a bot that is programmable using JavaScript. “How do I program it?” Here is the explanation.

Programming it

!edit messageCreate

message.reply("Hello!");

!edit messageReactionAdd

reaction.message.reply("Somebody reacted to this message.");

It also has features already defined when you’re editing.

// message components
new Discord.MessageAttachment(); // an attachment
new Discord.MessageEmbed(); // an embed
new Discord.MessageActionRow(); // an action row
new Discord.MessageButton(); // a button
new Discord.WebhookClient(); // a new webhook client
// database
database.set(objectName, content); // returns true if successful
database.get(objectName); // returns content of the object
database.has(objectName); // returns a boolean of if the object exists or not
database.delete(objectName) // deletes the object and returns true if successful
// other
something.passGen(length); // generates a password with the specified length
something.sleep(milliseconds); // sleeps for the specified amount of milliseconds

To view the code of an event, you use this command.

!view eventName

Examples

Block specific words:

!edit messageCreate

var blocked = ["genshin impact"];
blocked.forEach((word) => {
	if (message.content.toLowerCase().includes(word.toLowerCase())) {
		message.delete();
	}; 
});

Starboard:

!edit messageReactionAdd

if (reaction.emoji.name == "⭐") {
	if (reaction.count > 3) {
		reaction.message.guild.channels.cache.get('starboardChannelId').send(`**${reaction.message.url}**`);
	};
};
Morbin

You heard the title. If you use “!morbius” it will literally send the entirety of Morbius.

Check out the home page for the full Discord Bot List.