JensBot kommandoer for: chat moderator

Kommando Beskrivelse Sådan bruger du den
!editcom Opdater eksisterende command !editcom [command] [ny besked]
!delcom Slet en command !delcom [command]
!addcom Tilføj en command !addcom [command] [besked]
!aliascom Opret et alias til en eksisterende command !aliascom [esksisterende command] [alias]
!delalias Slet et alias !delalias [alias]
!disablecom Slå en command fra !disablecom [command]
!enablecom Slå en command til !enablecom [command]
!game Opdater spil !game [spil]
!title Opdatere titel (Kan være buggy) !titel [titel]
!moderation links Tillad links !moderation links [on/off]
!moderation caps Tillad caps !moderation caps [on/off]
!moderation spam Slå spam filter til eller fra !moderation spam [on/off]
!moderation symbols Slå symbol filter til eller fra !moderation symbols [on/off]
!moderation emotes Slå emotes filter til eller fra !moderation emotes [on/off]
!moderation longmessages Tillad lange beskeder !moderation longmessages [on/off]
!moderation emoteslimit Anatallet af emotes tilladt. !moderation emoteslimit [antal]
!permit Tillad en person at poste et link !permit [brugernavn]
!reconnect Sætter JensBot til at reconnecte til & API serveren !reconnect
!log Tjek om botten gemmer chatten i log (Kun Jens kan tilgå logs) !log
!log enable Slå log til (Kun Jens kan tilgå logs) !log enable
!log disable Slå log fra (Kun Jens kan tilgå logs) !log disable
!coolcom Sæt cooldown på en command (i sekunder) !coolcom [command] [tid i sekunder]
!pausecommands Slår alle bot commands fra i et bestmt antal sekunder !pausecommands [tid i sekunder]
!pausecommands clear Aktivere commands igen. Kun hvis !pausecommands er i brug !pausecommands clear
!mute Slår bottens chat output fra. Den vil stadig være chat mod. Brug igen for at slå til !mute
!botmod Linker til moderator kommandoer !botmod
!lang Skift sprog på botten. Kræver genstart af botten for at virke! !lang [sprog]
!moderation subscribers Slå moderation til eller fra for subs !moderation subscribers [links / caps / symbols / spam / emotes / colors / longmessages] [true / false]
!toggleme Send alle bottens chat beskeder som /me [besked] !toggleme
!commands Viser en liste over custom commands !commands

Avanceret guide på engelsk

The examples may contain characters such as: “[ ]”. Do NOT include those in your command when running it, they are there to categorize parts of the commands (usually values you would enter) for explanatory purposes.

!addcom [command] [message]

If you wanted the command !hello to say “Hello World.
You would type: !addcom hello Hello World!
Which would result in:
You: !hello
Bot: Hello World!

If some of these commands do not work for you, you can always post all your issues and concerns Support section of the forum by clicking here!

As PhantomBot grows in popularity more issues, concerns, and common questions can be answer by using the search function. There are also helpful guides stickied to the top of the thread!

Want to disable a script?
!module disable [path]
Example, !module disable ./commands/killCommand.js
To re-enable the script use !module enable [path]

Command List Tag Guideline:
[group] means you can use the following user groups:
Caster = 0 | Administrator = 1 | Moderator = 2 | Subscriber = 3 | Donator = 4 | Hoster = 5 | Regular = 6 | Viewer = 7
[URL] it's a link to a website (obviously).
[name] enter any name you desire.
[message] enter any message you desire.
[command] means the name of the command (do not include the '!').
[number] refers to number ID.
[amount] the amount you want.
[price] Cost of points.
[reward] Can be a message like if you giving a CD-key or amount of points.
[keyword] a message a user will need to enter in order to trigger the keyword.
[option] you type the option you want.
[file (file path)] used to make a command that reads the specified text file.
[-followers] This is just to show if you want only followers to participate to raffles. Don't use the brackets though.

Custom Commands Tag Guideline:
These are used for commands such as !addcom and !editcom.

(sender) - replaces with the sender's name.
(@sender) - adds a @ symbol in fromt of the sender's name.
(baresender) - makes the sender's name all lower case.
(random) - picks a random person from chat.
(pointname) - says the current points name.
(uptime) - give's you the stream uptime.
(game) - give's you the current channel game.
(status) - give's you the current channel title.
(count) - increases everytime you use the command.
(touser) - will say sender if nothing is said after the command or will replace with a custom sender.

Custom API and Custom API JSON:

To allow for a great deal of flexibility with PhantomBot, we are happy to provide new tags for custom commands.

Custom API

!addcom tag: (customapi URL) URL may contain $1...$9 to pass parameters from chat as input to the URL.

The customapi tag will pull a given URL and display the information exactly as it is provided by the web service. This is useful for web services that return plain text. Do not use this to return data from a web page, as that will simply spam the chat. Note that the URL may be passed parameters from chat, for example, say a web service requires a text field to return data, such as a name of a person: !addcom joke (customapi$1) This would send a request and pass name with a value given as the first parameter to !joke in chat. Note that if a $1...$9 parameter is given, the bot will require parameters before executing the command.


!addcom tag: (customapijson URL key | object.key | object.object...key | {literal string} ...) URL may contain $1...$9 to pass parameters from chat as input to the URL. key is a key to data on the first node of the returned JSON object.key provides a JSON object to select a key from. object.object...key indicates that many objects may be traversed to get at a given key. {literal string} is text to place between queried values.

The customapijson tag will pull a given URL and expects to receive a JSON object from the web service. An understanding of JSON objects is highly recommended in order to know what to use as the mapping guide. Note that the JSON parser will not attempt to traverse arrays and find specific elements, this will only select objects and a key. The key must relate to an integer or string value. The following is an example: !addcom yomomma (customapijson joke) The above will create a new command that queries the given API and returns the value associated with the joke key.

Another example: (customapijson$1 {Weather for} {:} current.condition.text {Temps:} current.temp_f {F} current.temp_c {C}) The above will create a new command that queries the given API and requires a parameter to be given in to the command. In this instance, a weather API is queried and the return string will be: *Weather for cityname : currentweather Temps: tempinF F tempinC C

To step through a bit further: parses the top level location object and then returns the value associated with the name key. current.condition.text parses the top level current object and then moves to the condition object to return the value associated with the text key. current.temp_f and current_temp_c parse the top level current object and return the value associated with the given keys, temp_f and temp_c. {Weather for}, {:}, {Temps:}, {F} and {C} are literal strings that are printed out.

Please note again, that this is a simple implementation for parsing JSON data. If a more complex JSON is to be parsed or data is to be correlated in some way, then a custom script or Java module would need to be developed.