From 125e397a10bae3e7c00032713bc393db48020102 Mon Sep 17 00:00:00 2001 From: Matthew Cech Date: Sat, 20 Apr 2019 02:08:38 -0700 Subject: [PATCH] + Added example plugin --- locStrings.config | 26 +++++++++++++------------- plugins/example.lua | 6 ++++++ 2 files changed, 19 insertions(+), 13 deletions(-) create mode 100644 plugins/example.lua diff --git a/locStrings.config b/locStrings.config index 377156f..b6e48f9 100644 --- a/locStrings.config +++ b/locStrings.config @@ -16,7 +16,7 @@ RollInfo=Based on input of xdy where x is number of dice and y is faces kitty wi [CommandGuildRoleAllowed] GuildRoleAllowedInfo= GuildRoleAllowedSuccess=Added %s to the allowed roles! -GuildRoleAllowedDuplicate=Can't add the same role twice! +GuildRoleAllowedDuplicate=Can't add the same role twice! [CommandStats] StatsInfo=Displays the actively running KittyBot application information @@ -26,7 +26,7 @@ TweetInfo=Kitty will tweet to her personal twitter account TweetError=Tweet command failed! [CommandGuildRoleAdd] -GuildRoleAddSuccess=Added %s to %s +GuildRoleAddSuccess=Added %s to %s GuildRoleAddFailure=Failed to add %s to %s GuildRoleAddNotAllowed=You are not allowed to add %s! GuildRoleAddInfo=Add a role to yourself! @@ -133,14 +133,14 @@ BoopStandard=Woah! %s booped me! That's %s total! BoopMultiple=%s booped several others - %s! [CommandFetch] -FetchError=That no picture! -FetchEat=Me eat now *monch %s* +FetchError=That no picture! +FetchEat=Me eat now *monch %s* FetchInfo=Throw a custom emote and me bring it back! -FetchCatchRun=*Catches and runs away with %s* -FetchRunAway=*Runs away and doesn't return for a long time* -FetchBringBack=Me gots it! %s -FetchBringBackWrong=Me gots it! %s -FetchStare=*Stares at %s* +FetchCatchRun=*Catches and runs away with %s* +FetchRunAway=*Runs away and doesn't return for a long time* +FetchBringBack=Me gots it! %s +FetchBringBackWrong=Me gots it! %s +FetchStare=*Stares at %s* [CommandInfo] InfoResponse=I'm made by `Rin#8904` and `Reverie Wisp#3703`!\nYou can find more info about me along with a Patreon link to support us and GitHub link for filing bugs https://www.rinsnowmew.com/bot/ @@ -183,10 +183,10 @@ EightBallYes10=Signs point to yes. InviteInfo=Provides a direct invite link for KittyBot [CommandGuildRoleRemove] -GuildRoleRemoveNotAllowed=You're not allowed to add %s -GuildRoleRemoveFailure=Couldn't remove %s from %s -GuildRoleRemoveSuccess=Removed %s from %s! -GuildRoleRemoveInfo= +GuildRoleRemoveNotAllowed=You're not allowed to add %s +GuildRoleRemoveFailure=Couldn't remove %s from %s +GuildRoleRemoveSuccess=Removed %s from %s! +GuildRoleRemoveInfo= [CommandWolfram] WolframError=Something went wrong! diff --git a/plugins/example.lua b/plugins/example.lua new file mode 100644 index 0000000..5415fdf --- /dev/null +++ b/plugins/example.lua @@ -0,0 +1,6 @@ +-- Example plugin stub. This function is called and passed the input message. +-- If nil is returned, the plugin is considered to have not run, but if any +-- other value is returned, it's interpreted as a string and sent back to the user. +function plugin(message) + return nil; +end