Bots: Difference between revisions

Johnball589 (talk | contribs)
Created page with "Bots are a very useful part of Electron, bots are powerful automation that can do stuff for moderation, fun and other stuff. =='''Making A Bot '''== Making a bot is easy in Electron. Go to guilds settings and click “Bots”, you will see a default bot and a button to create a bot. You can change the bots profile picture, status and about me. == '''Bot Coding''' == Flows are a way for bots to do functions. Flows are really simple and easy to use. Bots can also be pu..."
 
Johnball589 (talk | contribs)
 
(One intermediate revision by the same user not shown)
Line 35: Line 35:
Apply Effect - Copies the message member that triggered this flow and either makes the text Bubble (ⓣⓔⓢⓣ) or Squares (🅃🄴🅂🅃) depending on the option.
Apply Effect - Copies the message member that triggered this flow and either makes the text Bubble (ⓣⓔⓢⓣ) or Squares (🅃🄴🅂🅃) depending on the option.


Generate Random Number - Generates a random number with {GeneratedNumber} string when a member triggers this flow. You can either include normal text next to the string {GeneratedNumber}, or change the maximum value.(Max value cant be lower than 1. The number is highlighted in yellow)
Generate Random Number - Generates a random number with {GeneratedNumber} string when a member triggers this flow. You can either include normal text next to the string {GeneratedNumber}, or change the maximum value. (Max value cant be lower than 1).


Pick Random from List - Picks any random one of the texts on the list when a member triggers this flow. To create a list, you have to include ',' for seperating the texts on changing the list.
Pick Random from List - Picks any random one of the texts on the list when a member triggers this flow. To create a list, you have to include ',' for separating the texts on changing the list.


Assign Role - Assigns the member a role when a member triggers this flow.(If member name on the flow is empty, then role is assigned to the member that triggers this flow.) You can select which role to pick, then that role gets assigned to the member when flow is triggered.
Assign Role - Assigns the member a role when a member triggers this flow. (If member name on the flow is empty, then role is assigned to the member that triggers this flow). You can select which role to pick, then that role gets assigned to the member when flow is triggered.


Remove Role - Same as Assign Role flow, except it removes the role from the member instead. You can select which role to pick, then that role will be removed off from the member that has this role.
Remove Role - Same as Assign Role flow, except it removes the role from the member instead. You can select which role to pick, then that role will be removed off from the member that has this role.
Line 57: Line 57:
== '''Strings''' ==
== '''Strings''' ==


{UserMention}: Mentions the user's username.
{UserMention}: Returns the user's username.


{UserName}: Mentions the user's Roblox name.
{UserName}: Returns the user's Roblox name.


(UserDisplayName}: Mentions the user's Roblox Display Name.
(UserDisplayName}: Returns the user's Roblox Display Name.


{UserGuildName}: Mentions the userr's Electron Custom Guild name, or Roblox name if it dosen't exist.
{UserGuildName}: Returns the user's Electron Custom Guild name, or Roblox name if they don't have one.


{UserId}: Mentions the user's ID.
{UserId}: Returns the user's ID.


{UserAvatarId}: Mentions the user's avatar ID, if any.
{UserAvatarId}: Returns the user's avatar ID, if any.


{UserBannerId}: Mentions the user's avatar banner ID, if any.
{UserBannerId}: Returns the user's avatar banner ID, if any.


{UserOnlineStatus}: Mentions the user's current online status(Online, Idle, Do not disturb)
{UserOnlineStatus}: Returns the user's current online status (Online, Idle, Do Not Disturb).


{UserTextStatus}: Mentions the user's Electron Custom Status text.
{UserTextStatus}: Returns the user's Electron Custom Status text.


{UserAboutMe}: Mentions the user's Electron About Me text.
{UserAboutMe}: Returns the user's Electron About Me text.


{UserBadgesCount}: Mentions the amount of badges the user has.
{UserBadgesCount}: Returns the amount of badges the user has.
 
{GuildName}: Returns the current guild name.
 
{GuildDescription}: Returns the current guild description.
 
{GuildAvatarId}: Returns the current guild avatar ID.
 
{GuildBannerId}: Returns the current guild banner ID.
 
{GuildTagName}: Returns the current guild tag name.
 
{GuildRulesCount}: Returns the current guild rules count.
 
{GuildBotsCount}: Returns the current guild bots count.
 
{GuildRolesCount}: Returns the current guild roles count.
 
{GuildMaxMembers}: Returns the max members allowed in the guild.
 
{GuildInvite}: Returns the current guild invite code.
 
{Year}: Returns the current year in UTC.
 
{Month}: Returns the current month in UTC.
 
{WeekDay}: Returns the current day of the week in UTC.
 
{Date}: Returns the current date (Month, Day, Year).
 
{Time12}: Current time in 12-hour format (6:06 PM).
 
{Time25}: Current time in 24-hour format (18:06).
 
{GeneratedNumber}: Generated random number.
 
{GeneratedItem}: Generated random item.
 
{args1}: The entire message string.
 
{args2}: The entire message string after the first space.
 
{args3}: The entire message string after the second space.
 
{args4}: The entire message string after the third space.
 
{args5}: The last word of the message string.
 
{word1}: The first word of the message string.
 
{word2}: The second word of the message string.
 
{word3}: The third word of the message string.
 
{word4}: The fourth word of the message string.
 
{word5}: The fith word of the message string.
 
[(variable name)->(variable content)]: Write the custom variable. Content empty means variable is deleted. Max is 3 at a time. Doesn't save between game and guilds and on rejoin.
 
{(variable name)}: Read the custom variable.