MrMasrozYTLIVE
|
f706e7d621
|
Made Client.js->setupSwarm() parsing messages more readable
|
2024-06-14 20:06:05 +03:00 |
|
MrMasrozYTLIVE
|
42dccf9547
|
Actually just returning the url if its host is not 'localhost'
|
2024-06-14 19:58:40 +03:00 |
|
MrMasrozYTLIVE
|
d4dc1b299d
|
Ignoring 'updatePortInUrl' if port is 443 (SSL connection)
|
2024-06-14 19:53:51 +03:00 |
|
MrMasrozYTLIVE
|
3e9a2101d5
|
I did this.botName and not bot.botName lol
|
2024-06-14 19:51:34 +03:00 |
|
MrMasrozYTLIVE
|
2d0f97bc8f
|
Oops i made async constructor
|
2024-06-14 19:50:10 +03:00 |
|
MrMasrozYTLIVE
|
6cbfe34966
|
Testing bot avatars thingy
|
2024-06-14 19:49:26 +03:00 |
|
MrMasrozYTLIVE
|
9b4357dd00
|
i hate js. it ignores all of my code and just sends 'messagetype' instead of 'type'
|
2024-06-14 19:25:17 +03:00 |
|
MrMasrozYTLIVE
|
14aa129f6d
|
Trying some changes to make bot messages and client mmessages have same format
|
2024-06-14 17:44:05 +03:00 |
|
MrMasrozYTLIVE
|
d449249f41
|
Revert reverting
|
2024-06-14 17:39:16 +03:00 |
|
MrMasrozYTLIVE
|
bb26b5c2a8
|
Revert all changes i did to app.js
|
2024-06-14 17:37:58 +03:00 |
|
MrMasrozYTLIVE
|
52a319a1c0
|
Fixed my bots messages
|
2024-06-14 17:36:16 +03:00 |
|
MrMasrozYTLIVE
|
70655ce901
|
So messages actually broke somehow lol
|
2024-06-14 17:34:06 +03:00 |
|
MrMasrozYTLIVE
|
75be3a5b33
|
Reworked commands, added some funny stuff
|
2024-06-14 17:20:37 +03:00 |
|
MrMasrozYTLIVE
|
d5650a9d7b
|
I think i did it yay
|
2024-06-14 17:09:30 +03:00 |
|
MrMasrozYTLIVE
|
2ff9c73585
|
It doesnt want to work 😭
|
2024-06-14 17:07:21 +03:00 |
|
MrMasrozYTLIVE
|
d50e0df6a1
|
Time to do lots of debugging 😭
|
2024-06-14 17:05:00 +03:00 |
|
MrMasrozYTLIVE
|
8262bd4eb7
|
Hm. Its pretty strange. Thats why i dont really like JavaScript
|
2024-06-14 17:04:08 +03:00 |
|
MrMasrozYTLIVE
|
457bf01bc3
|
Trying out isPrototypeOf() function
|
2024-06-14 17:02:26 +03:00 |
|
MrMasrozYTLIVE
|
feff30fecc
|
Testing if sendMessage argument extends Message class
|
2024-06-14 17:00:35 +03:00 |
|
MrMasrozYTLIVE
|
b3ccda32ea
|
did lots of work on bot package
|
2024-06-14 16:43:17 +03:00 |
|
MrMasrozYTLIVE
|
f69b22c810
|
Removed .idea folder
|
2024-06-11 21:49:34 +03:00 |
|
MrMasrozYTLIVE
|
00b26d6afe
|
Changed lots of stuff inside of bot code. Got rid of peers in message object.
|
2024-06-11 21:47:42 +03:00 |
|
MrMasrozYTLIVE
|
4aa205cd73
|
Got rid of 2 useless classes
|
2024-06-11 20:56:02 +03:00 |
|
MrMasrozYTLIVE
|
5bb5e63105
|
Trying to merge is so hard
|
2024-06-11 20:54:43 +03:00 |
|
MrMasrozYTLIVE
|
4415d196de
|
small change in text
|
2024-06-11 20:53:30 +03:00 |
|
MrMasrozYTLIVE
|
edf61f0462
|
Started working on proper classes for messages (files and text), user peer class, chatroom class
|
2024-06-10 21:34:50 +03:00 |
|
MrMasrozYTLIVE
|
92ba56b9fc
|
Added topic to file attachment json
|
2024-06-10 21:25:41 +03:00 |
|
MrMasrozYTLIVE
|
7275b69948
|
Added onIcon and onFile events. onMessage is now being called only on messageType == message. Removed debug code from swarm.on('update').
|
2024-06-10 21:23:59 +03:00 |
|
MrMasrozYTLIVE
|
56d8a8091e
|
Yeah it actually works :yay:
|
2024-06-10 21:18:33 +03:00 |
|
MrMasrozYTLIVE
|
4ec0be2774
|
I think i got it to work lol
|
2024-06-10 21:17:16 +03:00 |
|
MrMasrozYTLIVE
|
27b3528304
|
It can have multiple topics :( time to figure a way to do it then ig
|
2024-06-10 21:13:52 +03:00 |
|
MrMasrozYTLIVE
|
2ca07e46c3
|
so topics in .map() are array. Is it array that always has only one buffer or can have lots of them???
|
2024-06-10 21:11:46 +03:00 |
|
MrMasrozYTLIVE
|
e396bcbb0b
|
b4a doesnt work its time to debug again
|
2024-06-10 21:10:25 +03:00 |
|
MrMasrozYTLIVE
|
3b7f0fbd1d
|
replaced topic.toString with b4a.toString(topic)
|
2024-06-10 21:09:33 +03:00 |
|
MrMasrozYTLIVE
|
79bdd04810
|
Lmfao i did peer.topics
|
2024-06-10 21:06:09 +03:00 |
|
MrMasrozYTLIVE
|
1dca21fe75
|
Did an oopsie with array.filter ([array.filter] instead of [array].filter)
|
2024-06-10 21:03:01 +03:00 |
|
MrMasrozYTLIVE
|
edd3f632cf
|
Now its time to debug peer topics since its empty right now
|
2024-06-10 21:02:01 +03:00 |
|
MrMasrozYTLIVE
|
340362872f
|
Lol it actually was inverted for some reason
|
2024-06-10 21:00:22 +03:00 |
|
MrMasrozYTLIVE
|
230cdd1321
|
Huh? Is it actually inverted??
|
2024-06-10 20:58:59 +03:00 |
|
MrMasrozYTLIVE
|
acb5609d03
|
Its not working 😭 time to debug
|
2024-06-10 20:57:32 +03:00 |
|
MrMasrozYTLIVE
|
66d684e473
|
Filter all the peerInfo topics that are undefined and then map all of them to hex string
|
2024-06-10 20:56:02 +03:00 |
|
MrMasrozYTLIVE
|
03f053723d
|
Merge branch 'main' of https://git.ssh.surf/snxraven/LinkUp-P2P-Chat
|
2024-06-10 20:49:17 +03:00 |
|
MrMasrozYTLIVE
|
033330fd04
|
started working on parsing peers & topics they're currently in on swarm update event using 'swarm.peers'
|
2024-06-10 20:46:59 +03:00 |
|
MrMasrozYTLIVE
|
bfe0bafebc
|
I removed all of the debugging code for now to push the fix for app.js
|
2024-06-10 18:23:47 +03:00 |
|
MrMasrozYTLIVE
|
d233f9e5aa
|
I sometimes really hate nodej
|
2024-06-10 18:07:59 +03:00 |
|
MrMasrozYTLIVE
|
4134e20403
|
Array of arrays got fixed but i still cant figure out the issue with topics ehh
|
2024-06-10 18:06:00 +03:00 |
|
MrMasrozYTLIVE
|
d993090f8b
|
I actually didnt fix the issue with array of arrays. Now it should be fine
|
2024-06-10 18:03:15 +03:00 |
|
MrMasrozYTLIVE
|
ecfc62ff2c
|
Forgot to check if my temp array is > 0 😭
|
2024-06-10 18:00:51 +03:00 |
|
MrMasrozYTLIVE
|
7ed5681639
|
Huh publicKey is undefined lol
|
2024-06-10 17:59:54 +03:00 |
|
MrMasrozYTLIVE
|
5e52298196
|
Ehh its not remotePubKey but just pubKey
|
2024-06-10 17:58:37 +03:00 |
|
MrMasrozYTLIVE
|
5d6728f39f
|
Filtering all the peers except myself now
|
2024-06-10 17:57:52 +03:00 |
|
MrMasrozYTLIVE
|
051aa09c2d
|
Opps i had array of arrays of peers in message json
|
2024-06-10 17:55:23 +03:00 |
|
MrMasrozYTLIVE
|
2ed13e50f7
|
Ok i will stop exiting to test it properly
|
2024-06-10 17:53:36 +03:00 |
|
MrMasrozYTLIVE
|
aa53cb487b
|
I tried to iterate over not iterable object again 😭
|
2024-06-10 17:50:20 +03:00 |
|
MrMasrozYTLIVE
|
d1ee697c84
|
There's something even more interesting called 'peerInfo.topics' lol. So bad it has no good docs and i have to do this stuff to learn more
|
2024-06-10 17:48:24 +03:00 |
|
MrMasrozYTLIVE
|
7751d03b57
|
Found something interesting called 'swarm.peers'
|
2024-06-10 17:44:32 +03:00 |
|
MrMasrozYTLIVE
|
6980520a85
|
Lol i tried to iterate over not-iterable object
|
2024-06-10 17:40:57 +03:00 |
|
MrMasrozYTLIVE
|
7399585d9e
|
Trying to find a way to check which topic each pear is from
|
2024-06-10 17:38:50 +03:00 |
|
MrMasrozYTLIVE
|
fda25abe8c
|
Oops debugging didnt go as planned lol
|
2024-06-10 17:34:57 +03:00 |
|
MrMasrozYTLIVE
|
4cfae430b2
|
Started working on ChatRoom class
|
2024-06-10 17:34:21 +03:00 |
|
MrMasrozYTLIVE
|
8788adbc2b
|
Fixed sending ON_READY_MESSAGE
|
2024-06-10 17:28:18 +03:00 |
|
MrMasrozYTLIVE
|
d9dbdf4401
|
Oh i actually broke it because push returns length and not array itself 💀
|
2024-06-10 17:22:06 +03:00 |
|
MrMasrozYTLIVE
|
961599f366
|
I might've fix sending all 'peers' lol
|
2024-06-10 17:19:36 +03:00 |
|
MrMasrozYTLIVE
|
704f6ca0dc
|
Hmm how can i get publickey of the user sending info and not just peers who connected?
|
2024-06-10 17:17:34 +03:00 |
|
MrMasrozYTLIVE
|
805983e3f5
|
Oops forgot about bot startup message. It doesnt work because there's no known peers yet
|
2024-06-10 17:14:26 +03:00 |
|
MrMasrozYTLIVE
|
165d2f0faa
|
Trying to fix a bug with message peers
|
2024-06-10 17:07:54 +03:00 |
|
MrMasrozYTLIVE
|
24101e5611
|
Trying to make multiple rooms support. This is gonna be a bit of a hell lol.
|
2024-06-09 22:55:32 +03:00 |
|
MrMasrozYTLIVE
|
9f5d5b7dba
|
Merge branch 'main' of https://git.ssh.surf/snxraven/LinkUp-P2P-Chat
|
2024-06-09 21:01:00 +03:00 |
|
MrMasrozYTLIVE
|
9587ae4818
|
I guess its time to work on multiple rooms now
|
2024-06-09 11:19:57 +03:00 |
|
MrMasrozYTLIVE
|
8bac7def09
|
I fr fixed it this time
|
2024-06-09 11:17:20 +03:00 |
|
MrMasrozYTLIVE
|
d44ef48d89
|
I guess i know why it doesnt delete the room now
|
2024-06-09 11:16:22 +03:00 |
|
MrMasrozYTLIVE
|
2a2fbed732
|
Well i didnt...
|
2024-06-09 11:15:05 +03:00 |
|
MrMasrozYTLIVE
|
c59795a407
|
Well i hope i fixed it now
|
2024-06-09 11:12:40 +03:00 |
|
MrMasrozYTLIVE
|
33e0a13f93
|
Merge branch 'main' of https://git.ssh.surf/snxraven/LinkUp-P2P-Chat
|
2024-06-09 11:10:02 +03:00 |
|
MrMasrozYTLIVE
|
840b6e2069
|
Fixed removing rooms
|
2024-06-09 11:09:58 +03:00 |
|
MrMasrozYTLIVE
|
72bf632cd4
|
I dont know what to say here because i just need up-to-date repo on my laptop
|
2024-06-09 11:07:52 +03:00 |
|
MrMasrozYTLIVE
|
966873774c
|
Merge branch 'main' of https://git.ssh.surf/snxraven/LinkUp-P2P-Chat
|
2024-06-09 11:05:42 +03:00 |
|
MrMasrozYTLIVE
|
3df73b97c5
|
Guess gonna try this and then really take a break
|
2024-06-09 10:55:54 +03:00 |
|
MrMasrozYTLIVE
|
824e2dab42
|
Started working on making the bot be in multiple chatrooms
|
2024-06-09 10:51:15 +03:00 |
|
MrMasrozYTLIVE
|
0077989253
|
It acutally works just fine now yay
|
2024-06-09 10:08:29 +03:00 |
|
MrMasrozYTLIVE
|
f3b4755821
|
Very strange stuff tbh
|
2024-06-09 10:03:23 +03:00 |
|
MrMasrozYTLIVE
|
f6f804ab39
|
It actually works now but i want to get it to work properly
|
2024-06-09 10:01:01 +03:00 |
|
MrMasrozYTLIVE
|
f5f8d0ce19
|
And I honestly have no idea why it doesnt want to work
|
2024-06-09 10:00:01 +03:00 |
|
MrMasrozYTLIVE
|
13e4020920
|
It just doesnt want to put proper data to the config for some strange reason
|
2024-06-09 09:58:35 +03:00 |
|
MrMasrozYTLIVE
|
4a881ed721
|
Its actually not the reason...
|
2024-06-09 09:57:11 +03:00 |
|
MrMasrozYTLIVE
|
2befd34039
|
Ohh reading is async, thats why it didnt work
|
2024-06-09 09:56:12 +03:00 |
|
MrMasrozYTLIVE
|
b577ff3207
|
It doesnt want to use config for some reason. Time to debug stuff
|
2024-06-09 09:54:30 +03:00 |
|
MrMasrozYTLIVE
|
8ca1cc2b8f
|
I just forgot to read from the file LOL
|
2024-06-09 09:53:11 +03:00 |
|
MrMasrozYTLIVE
|
a3fbe7434a
|
Hmm will it work this way?
|
2024-06-09 09:50:05 +03:00 |
|
MrMasrozYTLIVE
|
a9f50e892b
|
Oopsie checking if config exists didnt work (It is done by checking if username is not empty lol)
|
2024-06-09 09:46:42 +03:00 |
|
MrMasrozYTLIVE
|
1271c48571
|
Mostly finished loading. User avatar stuff is left to do 😭
|
2024-06-09 09:44:52 +03:00 |
|
MrMasrozYTLIVE
|
d33d31debf
|
Got rid of userName and userAvatar in exchange of config.userName and config.userAvatar
|
2024-06-09 09:32:33 +03:00 |
|
MrMasrozYTLIVE
|
89ebe02743
|
Merge branch 'main' of https://git.ssh.surf/snxraven/LinkUp-P2P-Chat
|
2024-06-09 09:29:39 +03:00 |
|
MrMasrozYTLIVE
|
c2e1242d8b
|
Merge branch 'main' of https://git.ssh.surf/snxraven/LinkUp-P2P-Chat
This is automatic merge of FileUploading and Config commits.
|
2024-06-09 09:24:04 +03:00 |
|
MrMasrozYTLIVE
|
3947e78aef
|
Started working on saving the user data on actions like registration, joining and leaving rooms. Lacks of loading on start up.
|
2024-06-09 09:23:45 +03:00 |
|
MrMasrozYTLIVE
|
9f2353c902
|
Added check if botName or chatRoomID is not defined
|
2024-06-08 23:38:44 +03:00 |
|
MrMasrozYTLIVE
|
cd5cfb20a4
|
Replaced 'setTimeOut' with bot.on('onBotJoinRoom', () => {}); for sending ON_READY_MESSAGE to the chat
|
2024-06-08 23:36:00 +03:00 |
|
MrMasrozYTLIVE
|
164efc5b72
|
Removed Enum class because it does not work 😭
|
2024-06-08 23:31:24 +03:00 |
|
MrMasrozYTLIVE
|
b244aa9bdf
|
Added Event enum and 2 new events
|
2024-06-08 23:29:51 +03:00 |
|
MrMasrozYTLIVE
|
114875cddb
|
Merge branch 'main' of https://git.ssh.surf/snxraven/LinkUp-P2P-Chat
|
2024-06-08 23:17:29 +03:00 |
|