Sender | Message | Time |
---|---|---|
15 May 2023 | ||
FF777 | if nothing else works i could try to create the room and stuff for you.... i know it sucks having to have other people do stuff for you instead of being able to do it your self, but that is just an option available if you get desperate and can't figure it out eventually.. | 20:49:47 |
FF777 | i don't really feel like messing with the matrix docs and figuring out curl my self.. | 20:50:33 |
FF777 | but this is the command i used to create the room using the nio API: | 20:51:48 |
FF777 | Download 2023-05-16 05-51-09.webp | 20:51:56 |
FF777 | Download 2023-05-16 05-51-24.webp | 20:52:00 |
16 May 2023 | ||
u | Thanks for the info, maybe I’ll take a look at the nio api’s later, are they what bots use? And a bot doesn’t have to be running on the server itself or anything, could be like a client running on anything anywhere? | 05:36:14 |
u | And the only thing that you have to get right the first time in a room creation appears to be the federate option (defaults to yes), everything else can be changed it looks like? For a public room I should probably use the public preset, so that oughta work out well, I’ll give it a go later on 👍 | 05:42:25 |
u | The older matrix docs had more basic examples using one-liners with curl, just paste in your auth string and a couple commands, but don’t all seem to work quite right anymore. I can create rooms ok, but sending the most basic { "msgtype" : "m.text", "body" : "test” } message wouldn’t work, it only sent “invisible” events that looked like edits to the previous attempt with nothing displayed. Guide says messages need some serial number now and it’s tied to the session auth somehow? Maybe trying random numbers was how I got the 500 server error... Anyway, just odd quirks like that. | 05:53:14 |
u | This probably doesn’t matter at all, since a tombstone is the last thing done, but just had another thought - can you delete a tombstone and “re-active” a room later? Probably not if a new room was created pointing to the old one, since element (at least) hides the old room and only shows the new one... or if you kick someone from the upgraded room they’re probably kicked from the old one too... maybe I’ll try adding another account and test it out, see what element or Syphon does (syphon was terrible on mobile, couldn’t scroll back, seeing new messages was iffy, couldn’t verify other logins... but the server could’ve been poor too) | 06:03:00 |
FF777 | yeah nio is the library i use for my bots.... nio is pretty much the best thing to use if some one wants to make bots in python for matrix.... i have 3 bots running and they run on my computer here.. | 06:03:46 |
FF777 | and i have no idea if you can delete tombstone event or not | 06:04:51 |
FF777 | i mean, i guess you could think of the nio stuff as a higher-level abstraction layer for the lower-level calls that you are trying to do.. but then you could have to write some python stuff though.. | 06:07:34 |
FF777 | i'm lazy you know? so it's just like....... why do i want to mess with low-level stuff when i can let nio do that stuff for me.. | 06:08:03 |
u | Yeah, deleting a tombstone is probably not something I’d do... I know editing a room create to reference a different previous room doesn’t work. I’ll just not screw up 👌 | 06:08:08 |
u | I’m a little familiar with python, mint used to use it for a lot of their scripts, and it looks close enough to c to get the gist & maybe edit existing code a little. | 06:10:25 |
FF777 | any way, if you have python on there i could try to give you the basic few lines of code you need to create a room and do the tombstoning and stuff.. | 06:13:10 |
FF777 | oh yeah and i guess you would have to use pip to install nio.. (pip should already be on there if python is) | 06:13:36 |
u | Sure, if it’s no bother thanks. Actually maybe have a link to a good guide on nio handy? | 06:27:37 |
FF777 | there are no good guides..... it is a lot of figuring out crap on your own through trial & error..... the few examples of stuff don't even work half the time..... but if you are just using it real fast to create a room and tombstone then you don't have to worry about learning all about it.. | 06:42:36 |
FF777 | there is a nio room here though, but you'd probably only want to join it if you are planning on learning more about nio stuff to flesh out some type of bot or some thing.. | 06:43:41 |
FF777 | #nio:matrix.org | 06:43:48 |
FF777 | any way, do you have a working python installation? and what version is it? | 06:44:26 |
FF777 | oh yeah by the way, you can run the bot on your own account (self-bot) instead of making a new account.. | 07:07:13 |
u | Sounds like all the matrix docs are in the same half-afloat boat. Suppose we’re lucky it works at all | 07:40:16 |
FF777 | that sucks | 07:50:35 |
17 May 2023 | ||
u | Guess I've got python 2.7.16 and 3.7.3, and whatever else is in buster's repos | 18:05:14 |
u | But the no-encryption upgrade seemed to go ok. Maybe I should've @ room'd a minute before upgrading though, might've woken up the live but not reading accounts to join the new one, if inflating the user numbers helps. Or it might wake them up to leave... | 18:08:07 |
FF777 | buster? isn't the current one bullseye.... but actually bookworm is going to release before too long.. but it's kind of a pain to upgrade because you have to set up all the settings and crap every time.. | 21:50:01 |
FF777 | any way, just tell me what you need.. i've been very busy lately with real life stuff.. | 21:50:44 |
18 May 2023 | ||
u | It was stable when I installed mx. I think it should have another 2yrs or so of support? As long as it still works, repos still up, firefox & element gets updates, I don't see a need to go through the 50 steps or so to customize a new install. Maybe an in-place upgrade someday... | 13:15:27 |