Commit graph

339 commits

Author SHA1 Message Date
Madpeter
b812f807aa testing again 2020-07-06 06:33:25 +01:00
Madpeter
09aba0b845 maybe i used the wrong value? 2020-07-06 06:12:15 +01:00
Madpeter
3fc649738d adds info to group invite while we test stuff, also cleans up invite code 2020-07-06 05:54:27 +01:00
Madpeter
7060678986 adds everyone role when invite sending 2020-07-06 05:35:08 +01:00
Madpeter
a9fa58e01a request balance after login 2020-07-06 05:34:47 +01:00
Madpeter
0e0591bb39 groupinvite command skip membership check 2020-07-06 05:21:46 +01:00
Madpeter
dd8b781643 adds missing true status when gohome is called 2020-07-05 23:40:30 +01:00
Madpeter
2f99808abe adds more info to fail case maybe i can fix it 2020-07-03 21:26:32 +01:00
Madpeter
7fcc85d2e8 improves chat filters to ignore secondlife messages 2020-07-03 03:31:07 +01:00
Madpeter
7f5b5c8135 Adds info message for sending a notecard 2020-07-03 03:30:39 +01:00
Madpeter
32e5d17425 adds discord as an output target (Virtual) 2020-07-03 03:30:21 +01:00
Madpeter
ce7fef4404 Adds info messages to FetchNextNotecard command (Used by streamadmin) 2020-07-03 03:29:49 +01:00
Madpeter
fb1b4a711a adds some tests to av lookup to exclude some bad values 2020-06-07 05:09:00 +01:00
Madpeter
0f2aa1f903 uses nickname vs avatarname when sending messages 2020-06-07 05:08:10 +01:00
Madpeter
acfc3da27c adds a try catch around the create text channel call so if it fails it does not take out the bot.
- Reported by Darl
2020-05-23 17:27:47 +01:00
Madpeter
ab6b7d7a69 new config value: Security_SubMasters
this is a CSV of avatar names that can issue commands like the master
2020-05-18 17:02:38 +01:00
Madpeter
3c83d8afa7 New command: GetSimTexture
- Expect this to stop working at some point
2020-05-18 15:49:54 +01:00
Madpeter
c3e4af6658 new command: GetSimGlobalPos 2020-05-18 15:49:36 +01:00
Madpeter
375a85667b Localchat history (Required for webUI) 2020-05-15 23:23:43 +01:00
Madpeter
74f5cdaf90 new command: Bye
like Logout but without the kickass message
2020-05-15 23:22:45 +01:00
Madpeter
1803e4d529 Massive config value rename to be more normal 2020-05-12 14:24:19 +01:00
Madpeter
91c3a54e4f Removes the @home command (Being replaced by nothing it sucked) 2020-05-12 14:17:29 +01:00
Madpeter
27a152369b Updates the inventory commands to pass json formated replys when not sending a notecard to an avatar 2020-05-11 18:38:16 +01:00
Madpeter
8f59ba4bb7 smart reply update to use json encoding and collections, most commands help info updated but i might have missed some 2020-05-11 15:01:23 +01:00
Madpeter
cbf6dd0709 they both did the same thing anyway... 2020-05-11 13:14:51 +01:00
Madpeter
13ae57b777 removes the cleanup_ok value (it was not used) 2020-05-11 13:14:34 +01:00
Madpeter
9349da0d25 Removes the unneeded else 2020-05-11 13:14:19 +01:00
Madpeter
f2a2b3a369 removes the unneeded now define 2020-05-11 13:14:04 +01:00
Madpeter
072faf7d03 makes the code easyer to understand 2020-05-11 13:13:51 +01:00
Madpeter
176a30ecaa adds { } for the ifs 2020-05-11 13:13:23 +01:00
Madpeter
643e33ee6f removes needed string value define 2020-05-11 13:13:14 +01:00
Madpeter
2fa405a376 Changes the code to return a task 2020-05-11 13:13:03 +01:00
Madpeter
be185ae932 Adjusts the awaits to continue as we dont care at this point 2020-05-11 13:12:31 +01:00
Madpeter
ce6d3d3167 removes the unneeded define to false 2020-05-11 13:12:02 +01:00
Madpeter
3b0a45613d removes the unneeded value update 2020-05-11 13:11:41 +01:00
Madpeter
e3081ff873 Removes the dup'd if statement and adjusts the text 2020-05-11 13:11:21 +01:00
Madpeter
9a4cdda149 new command: RequestTeleport 2020-05-11 12:12:48 +01:00
Madpeter
ffe8672f08 Updates the fly command so when stopping flying it clears hover state correctly 2020-05-11 12:07:33 +01:00
Madpeter
ef7e1e2392 readds localchat support not being able see replys in local was dumb 2020-05-11 10:53:52 +01:00
Madpeter
a32b74e2cc Removes OnStartLinkupWithMaster flag (its not needed anymore) 2020-05-10 22:37:22 +01:00
Madpeter
46b8ffceba New command TransferInventoryToObject (Use 3rd arg True if you want to send a running script!) 2020-05-10 22:25:04 +01:00
Madpeter
7bfc22ca1b New command: UnRezObject 2020-05-10 22:21:44 +01:00
Madpeter
39ab3b3e35 New command: RezObject 2020-05-10 22:21:34 +01:00
Madpeter
7a36cec3a7 Adjusts the bot to only IM and request friendship if the flag is set AND you are not already on the friends list otherwise just give full friend perms 2020-05-10 22:21:22 +01:00
Madpeter
d8d5dfb78b Adds new local event FoundMasterAvatar 2020-05-10 22:20:35 +01:00
Madpeter
73d0f54319 corrects a issue with the commands add history where the output was not set to the message string. 2020-05-09 19:49:37 +01:00
Madpeter
e0998c6b90 adjustments to the discord chat interface to show ticks and crosses on stuff 2020-05-09 19:48:35 +01:00
Madpeter
b1b9a51c3b adjustments to the discord command history add function 2020-05-09 19:48:09 +01:00
Madpeter
2bc5495600 makes the request to get group roles and sets the infoblob 2020-05-09 19:47:40 +01:00
Madpeter
c10894c92e Corrects arg number for role uuid 2020-05-09 19:47:21 +01:00
Madpeter
712b968b37 packages update 2020-05-08 17:37:03 +01:00
Madpeter
d028710331 Corrects the namespace for the command: scriptHttp 2020-05-07 13:09:05 +01:00
Madpeter
72e67e533f Corrects the number of args needed for ActiveGroup command and adds missing return true; 2020-05-07 13:02:32 +01:00
Madpeter
450fe8d317 New command: GroupActiveTitle
Changes the title the bot is using.
2020-05-07 12:51:42 +01:00
Madpeter
0c5f2a8301 new command: GroupActiveGroup
allows the bot to set what group its currently active under (this should not update the title)
2020-05-07 12:51:03 +01:00
Madpeter
509425cd7e adds a optional 3rd arg for chat level (Shout/Whisper) 2020-05-07 12:50:17 +01:00
Madpeter
dea834a427 removes the pointless smart reply vaildation 2020-05-07 12:49:58 +01:00
Madpeter
6760f18fa6 Removes unneeded smartreply test 2020-05-07 12:49:34 +01:00
Madpeter
b7821cbd31 new command: UnixTimeNow 2020-05-07 12:49:02 +01:00
Madpeter
3b7d955cbd new command: SimName 2020-05-07 08:30:41 +01:00
Madpeter
099580928a new command: GetPosition 2020-05-07 08:29:41 +01:00
Madpeter
6fc33d558c Moves the Balance command into the info namespace 2020-05-07 08:27:48 +01:00
Madpeter
0b636fc648 Moves GetParcelName into the info namespace
Renames the command to ParcelName
2020-05-07 08:27:34 +01:00
Madpeter
604ec9c716 adjusts the @home system removes most of it for now (Might attempt it later if I get time) 2020-05-07 07:22:48 +01:00
Madpeter
69ce7c416e Renames AtHomeSimOnly to AtHomeLockToPos
adjusts settings so its same sim only by default
2020-05-07 06:53:13 +01:00
Madpeter
e7216f000d Renames command AutoPilotLocal to AutoPilot and switchs to using global space 2020-05-07 06:44:16 +01:00
Madpeter
7d98f75766 Makes the bot face the auto walk direction and stay looking that way after 2020-05-07 04:52:53 +01:00
Madpeter
145bebcda3 removes some unneed using from athome bot type 2020-05-07 04:31:40 +01:00
Madpeter
6c102ab250 Adds after lookup to the command history 2020-05-07 04:31:25 +01:00
Madpeter
7f4975c062 New config value: OnStartLinkUpWithMaster [Default: True]
on login the bot will send a friend request to the master and grant them full friend rights (Online status, Tracking, Object modify)
2020-05-07 04:31:07 +01:00
Madpeter
2cd999ebe6 New command: SendTeleportLure 2020-05-07 04:26:56 +01:00
Madpeter
c2dd0cf5ff New command: FriendFullPerms 2020-05-07 04:26:43 +01:00
Madpeter
6fc62c461f New command: FriendRequest 2020-05-07 04:26:32 +01:00
Madpeter
cf362de823 New command: RotateToFace 2020-05-07 04:26:22 +01:00
Madpeter
3883284ac9 New command: RotateToFaceVector 2020-05-07 04:26:03 +01:00
Madpeter
74cd515301 removes unneeded usings from the top of commands 2020-05-06 17:36:04 +01:00
Madpeter
06f0932862 updated to use the new config value to disable 2020-05-06 17:34:59 +01:00
Madpeter
321e3f67db New command: Balance
returns the bots L$ value via smart target.
2020-05-06 17:34:44 +01:00
Madpeter
5a0777468f Cleanup and split of the discord bot type into its own folder and multiple files 2020-05-04 22:27:22 +01:00
Madpeter
618eeb3c17 Renames command from Fly to BotFly due to RLV overlap 2020-05-03 18:41:23 +01:00
Madpeter
6e13946269 lower the delay after logging in to 10 secs 2020-05-03 18:40:29 +01:00
Tikuf
f0ee4b69af URL Validation
Validates argument contains valid http or https url.
2020-05-01 19:56:49 -06:00
Madpeter
1cd12e6d05 remove unneeded space 2020-05-01 23:30:27 +01:00
Madpeter
473039001d Merge branch 'master' of https://github.com/Madpeterz/SecondBot 2020-05-01 23:28:35 +01:00
Madpeter
6621b6f817 updates the command system to accept ~#~ or ||| as the splits for commands so
say|||0|||Hi there mark
or
say|||0~#~Hi there mark

are both vaild now
2020-05-01 23:25:28 +01:00
Tikuf
6d06709cb5 Fixed handeling of encoded name
Spaces now replace %20
2020-05-01 16:24:57 -06:00
Madpeter
b30ae3e29c updates the @home system to use the renamed function 2020-05-01 23:24:38 +01:00
Madpeter
d98272d484 Updates command AutoPilotLocal to accept a 1 vector or 3 args of location 2020-05-01 23:23:34 +01:00
Madpeter
851c99385c New command: Fly 2020-05-01 23:22:46 +01:00
Tikuf
316b5f283d Removed script name extra title text 2020-05-01 15:09:23 -06:00
Madpeter
06e33b2147 uses teh return value for the replace 2020-05-01 22:00:43 +01:00
Tikuf
d2d504c8cb Added script creation from http
Will fetch github link, and send compiled contents  to avatar
2020-05-01 14:43:56 -06:00
Madpeter
50b1a07de3 Updates nuget packages and switchs to the nuget version of libreMetaverse-core 2020-05-01 20:55:54 +01:00
Madpeter
ab4c6f8668 new commands
AtHomeSameSimMode:  Allows you to tell the @home system to only check if its in the same sim or sim+pos
AtHomeSameSimRange: Allows you to tell the @home system how far away from its home pos the bot is allowed

both of these values are set via config this only allows you to update the live versions!
2020-05-01 16:35:48 +01:00
Madpeter
4849b022b5 Adds support for the @home system to adjust its options via script 2020-05-01 16:33:56 +01:00
Madpeter
349fc6299f Corrects a issue with the commands system not using the override min args value leading to crashs if you did not send the correct args. 2020-05-01 16:33:31 +01:00
Madpeter
e1e40b161c New settings for the @home system:
AtHomeSimOnly - Should the @home system only care if the sim is correct (True|False)
AtHomeSimPosMaxRange - if (False) How far away can the bot get before it teleports (in M example: 10.0)

Also renames a config value to be less tash.
- Please note updated docker file -
2020-04-30 04:33:27 +01:00
Madpeter
b53fa7f641 New commands: AutoPilotLocal, AutoPilotStop 2020-04-30 04:31:07 +01:00
Madpeter
43209d6f78 More tidying up 2020-04-29 20:49:41 +01:00
Madpeter
13d7eef4d8 bottype cleanup 2020-04-29 20:24:17 +01:00
Madpeter
78b3183036 Commands cleanup 2020-04-29 20:23:52 +01:00
Madpeter
af6ae11ee9 Cleanup and switching to StringBuilder 2020-04-29 17:22:44 +01:00
Madpeter
6dd56a2295 Cleanup 2020-04-29 16:48:18 +01:00
Madpeter
78014adaaf teleported status flag 2020-04-29 04:43:14 +01:00
Madpeter
d8878594af cleanup the the athome system (I will prob end up redoing this as im not a fan) 2020-04-29 04:33:50 +01:00
Madpeter
c5c5a40036 Now checks if the discord relay group is not UUID zero and is a vaild uuid before using relay mode. 2020-04-29 04:28:48 +01:00
Madpeter
9b5ac724e4 Cleanup 2020-04-29 04:12:55 +01:00
Madpeter
a4deb6857a shared codeblock updates 2020-04-29 03:43:17 +01:00
Madpeter
1ff8fd7228 command rename: from Parcel SetMusicURL to SetParcelMusic,
also updates to the new shared code blocks
2020-04-29 03:43:05 +01:00
Madpeter
ff579cba6d file rename, and update to shared code block 2020-04-29 03:42:27 +01:00
Madpeter
aa9d70cfe6 new helper for pacel commands to reduce repeated code blocks 2020-04-29 03:41:45 +01:00
Madpeter
ff7481a501 assigns the group before deeding the parcel 2020-04-28 06:07:00 +01:00
Madpeter
1e4d916e5a parcel in memory checks 2020-04-28 05:50:28 +01:00
Madpeter
3c572a2682 adds a memory check 2020-04-28 05:37:43 +01:00
Madpeter
90c835973d adds support to set a target buyer for parcel (when set also allows the sell price to be set to zero) 2020-04-27 23:39:42 +01:00
Madpeter
444c5846e5 new command: ParcelCleanAndSell,
takes ownership of the land, Clears the land, then sells the land again.
2020-04-27 23:21:22 +01:00
Madpeter
e29b6b1a25 new command: ParcelBuy 2020-04-27 23:16:01 +01:00
Madpeter
04eeee600d corrects the return mode type 2020-04-27 22:58:27 +01:00
Madpeter
44d6929769 remove unneed if check 2020-04-27 22:50:34 +01:00
Madpeter
85d6abb5bc On login failed attempt to reconnect 2020-04-27 21:37:10 +01:00
Madpeter
f36d999837 Calm.... i am the worst 2020-04-27 20:28:13 +01:00
Madpeter
6177b0e710 rename file 2020-04-27 04:38:16 +01:00
Madpeter
c599d4a2b0 re adds the L$1 low value 2020-04-27 04:25:02 +01:00
Madpeter
09f8b4b4f8 moves the Flag set to static 2020-04-27 04:21:49 +01:00
Madpeter
b6e9e9e1d6 sets the lower limit to L$0
also sets the parcel for sale and to not transfer objects on sale.
2020-04-27 04:21:35 +01:00
Madpeter
85f62b8b8a moves Parcel set flag to static functions 2020-04-27 04:20:54 +01:00
Madpeter
6ef5a9c47a adds a check if you add =True|False to the flag 2020-04-27 04:17:13 +01:00
Madpeter
913ab57565 command history update 2020-04-27 02:27:09 +01:00
Madpeter
8eff843938 adds a check to see if the parcel dataset has loaded before processing 2020-04-27 02:26:25 +01:00
Madpeter
53d95f0e2a adds support to not send any args to clear the music url 2020-04-27 02:25:57 +01:00
Madpeter
fe192fc590 adds support to clear music url (using key word clear) 2020-04-27 01:19:41 +01:00
Madpeter
fa0b2211dc improvements to the args system when no args are given. 2020-04-27 00:48:30 +01:00
Madpeter
48fd3f6e0d adjustments to the avatar storage engine to try and catch some trash 2020-04-27 00:47:58 +01:00
Madpeter
e4e264ea92 new command: SimRestart
also updates Estate tools to allow custom ranges for sim restarts
2020-04-26 17:15:40 +01:00
Madpeter
d1af896a65 new command: SimMessage 2020-04-26 16:54:25 +01:00
Madpeter
b01aeff43f new command: ParcelDeedToGroup 2020-04-26 16:20:34 +01:00
Madpeter
f1e69f2e77 adds estate manager override for parcel commands 2020-04-26 16:20:18 +01:00
Madpeter
bcd259c217 new command: SetParcelSale 2020-04-26 16:11:07 +01:00
Madpeter
e150414d11 new command: AbandonLand 2020-04-26 16:06:41 +01:00
Madpeter
e4257688dd new command: SetParcelDesc 2020-04-26 15:45:57 +01:00
Madpeter
1d992217de new command: GetParcelDesc 2020-04-26 15:45:42 +01:00
Madpeter
33734a5042 renames the file to match the command name 2020-04-26 15:45:21 +01:00
Madpeter
b8de582791 renamed command: ParcelGetParcelName -> GetParcelName 2020-04-26 15:39:10 +01:00
Madpeter
9a4d202526 new command: SetParcelName 2020-04-26 15:38:30 +01:00
Madpeter
807634bcc1 New command: ParcelGetParcelName 2020-04-26 15:38:06 +01:00
Madpeter
d25012b088 Updates GetParcelFlags to use the smart arg type 2020-04-26 15:37:43 +01:00
Madpeter
2bef909af9 new command: ParcelSetMusicURL 2020-04-26 15:30:02 +01:00
Madpeter
eed5c5fe8a corrects a issue where command||| without anything after it would give a null arg when it should be ignored 2020-04-26 15:20:19 +01:00
Madpeter
9d127a8b23 improves arg testing to check for nulls 2020-04-26 15:17:00 +01:00
Madpeter
e574ed6144 arg test for IM command 2020-04-26 15:15:39 +01:00
Madpeter
c22190aab6 new command: EstateParcelReclaim 2020-04-26 15:12:13 +01:00
Madpeter
fc7405d0f4 new command: ParcelSetMedia and helper flags 2020-04-26 14:53:34 +01:00
Madpeter
3bf412dce8 new command: ParcelPrimCountTotal 2020-04-26 14:09:18 +01:00
Madpeter
527d31dffd corrects the required arg count 2020-04-26 14:09:08 +01:00
Madpeter
6845335bcd new command: ParcelPrimCountAvatar 2020-04-26 14:06:22 +01:00
Tikuf
c6c866bc46 Help generator cleanup 2020-04-25 23:30:59 -06:00
Tikuf
9ebbea56e5 Changed more help to notecard 2020-04-25 22:57:06 -06:00
Tikuf
1d8aa68984 More detailed help 2020-04-25 22:51:13 -06:00
Tikuf
298872acc8 Expanded help file 2020-04-25 20:52:06 -06:00
Tikuf
38faaeeb80 Fixed help file commands 2020-04-25 20:27:17 -06:00
Tikuf
41e16c1318 Better Help command 2020-04-25 20:21:27 -06:00
Madpeter
dfd99d8c26 adds master_uuid auto loading
getMaster_uuid (public) value
and master key2name avatar storage protection
2020-04-26 03:01:04 +01:00
Tikuf
837329340b Merge remote-tracking branch 'upstream/master' 2020-04-25 19:47:19 -06:00
Tikuf
47c1fe272f Owner Name
owner name var added
2020-04-25 19:46:49 -06:00
Madpeter
5b919cead4 fixs caller support issue 2020-04-26 02:41:16 +01:00
Tikuf
647c4f9ae3 Merge remote-tracking branch 'upstream/master' 2020-04-25 19:25:36 -06:00
Tikuf
813aa5a330 Great new help 2020-04-25 19:24:03 -06:00
Madpeter
5fbab6f118 adds support to access caller from within the commands lib 2020-04-26 02:23:05 +01:00
Madpeter
47246eb189 Helps if I save the file before submitting 2020-04-26 01:46:27 +01:00
Madpeter
5338733ed0 new command: Parcel return targeted 2020-04-26 01:43:25 +01:00
Madpeter
33acda930a Removes the object UUID check (not vaild for this command) 2020-04-26 01:43:10 +01:00
Madpeter
f2bb06889a new command: ParcelReturnObjects 2020-04-26 01:39:09 +01:00
Madpeter
08b312b643 adds parcelobjectowners support to await reply 2020-04-26 01:38:35 +01:00
Madpeter
bb4462f607 updates setParcelFlag to use the new perm check function 2020-04-26 01:38:12 +01:00
Madpeter
e6391c61eb makes parcel_static static and adds a new perm check function 2020-04-26 01:37:59 +01:00
Madpeter
990ddb38f9 adds callback command history support to these functions 2020-04-26 01:37:35 +01:00
Madpeter
2ec6055610 adds support for callback commands to update the command history 2020-04-26 01:36:51 +01:00
Madpeter
2a554925c3 New command: GetLastCommands 2020-04-26 00:26:14 +01:00
Madpeter
372c4c42cf adds a null check for RelayIMtoAvatar 2020-04-26 00:13:09 +01:00
Madpeter
96d9d8000d redirects commandsinterface call to a hookable version and makes command history add public 2020-04-26 00:04:25 +01:00
Madpeter
8168f334ce updates the discord full fat client to use command history hook and SendIM hook 2020-04-26 00:03:54 +01:00
Madpeter
2b1daf6045 redirects IM command to use the hooked version 2020-04-26 00:03:02 +01:00
Madpeter
540ead63c2 adds self IM support (used so it can be hooked onto) 2020-04-26 00:02:45 +01:00
Madpeter
0c2ea15f4d adds relay IM from bot to avatar support 2020-04-25 23:51:46 +01:00
Madpeter
9cc5ff374d adds the new commands history system 2020-04-25 23:50:46 +01:00
Madpeter
7302a732c1 makes the multi link support update faster and does some basic checks 2020-04-25 23:04:05 +01:00
Madpeter
5876a3a4d6 Multi attachment point support (Hacky) 2020-04-25 00:08:38 +01:00
Madpeter
1aef438b37 updates the inventory content mapper to split items up with ||| 2020-04-24 01:45:22 +01:00
Madpeter
4ce4c1b769 Port from bitbucket 2020-04-23 18:19:18 +01:00