Documentation |
Bolodefchoco « Sénateur » Membre 1527019680000
| 1 | ||
tfmbot
:JoinRoom :JoinTribeHouse :sendRoomMessage :sendWhisper :loadLuaScript :sendCommand :setEmoji :playEmote :sendChatMessage roomList Username room playerCode • eventLoop ( ) This event is triggered twice per second. • eventWhisper ( playerCommunity, playerName, message ) This event is triggered when the bot receives a whisper. Arguments: - playerCommunity (String) : the community of the player who whispered - playerName (String) : the player who sent the whisper - message (String) : the whisper content • eventRoomMessage ( playerID, playerName, playerCommunity, message ) This event is triggered when a player talks in a chat. Arguments: - playerID (String) : the ID of the player who talked in the #chat-room - playerName (String) : the player who sent the message - playerCommunity (String) : the community of the player who sent the message in the #chat-room - message (String) : the message content • eventCmd ( command ) This event is triggered when the bot sends a command (/). Arguments: - command (String) : the command sent by the bot • eventLogin ( ) This event is triggered when the bot logs in. • tfmbot:start ( botName, botPassword, initialRoom, initialCommunity ) Connects the bot to Transformice. Arguments: - botName (String) : the bot name - botPassword (String) : the bot password - initialRoom (String) : the room that the bot will join after logged - initialCommunity (String) : the community the bot will join before logged • tfmbot:JoinRoom ( roomName ) Joins a new room. Arguments: - roomName (String) : the room name • tfmbot:JoinTribeHouse ( tribeName ) Joins the tribe house. Arguments: - tribeName (String) : the tribe name • tfmbot:sendRoomMessage ( message ) Sends a message in the #chat-room. Arguments: - message (String) : the message content • tfmbot:sendWhisperMessage ( targetPlayer, message ) Sends a whisper to a player. Arguments: - targetPlayer (String) : the player who will receive the whisper - message (String) : the message content • tfmbot:loadLuaScript ( script ) Loads a Lua script in the tribe house. Arguments: - script (String) : the Lua script • tfmbot:sendCommand ( command ) Sends a command. Arguments: - command (String) : the command and its content • tfmbot:setEmoji ( emoji ) Sets a Transformice emoji above your bot. Arguments: - emoji (int) : the emoji id [0:9] • tfmbot:setEmote ( emote, flag ) Makes the bot do an emote. Arguments: - emote (int) : the emote id [0:27] - flag (String) : the flag name if the emote id is 10 • tfmbot:sendChatMessage ( chatName, message ) Sends a message in a chat. Arguments: - chatName (String) : the chat name in which the message will be sent - message (String) : the message content Dernière modification le 1527019800000 |