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
|
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
|
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
|
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
|
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
|
9587ae4818
|
I guess its time to work on multiple rooms now
|
2024-06-09 11:19:57 +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
|
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 |
|
|
4cc087fae2
|
delete ai command from repo
|
2024-06-08 23:08:39 +00:00 |
|
Raven Scott
|
a4f89be654
|
Merge branch 'main' of git.ssh.surf:snxraven/LinkUp-P2P-Chat
|
2024-06-08 19:07:04 -04:00 |
|
Raven Scott
|
e1adede7c3
|
update gitignore
|
2024-06-08 19:06:25 -04: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
|
de00514397
|
I actually dont know if it works or not. Changes: Replaced TopicBuffer with chatRoomID and now topicBuffer is being created directly in Client class; Replaced chatBot with Client; Client now extends EventEmitter; bot.on('onMessage', (pear, message) => {}) is now a thing instead of directly putting method in chatBot constructor
|
2024-06-08 22:34:25 +03:00 |
|
Raven Scott
|
378aeb7469
|
adding .env
|
2024-06-04 01:36:45 -04:00 |
|
Raven Scott
|
c293e3b5e7
|
Add command handler for bot
|
2024-06-04 01:19:56 -04:00 |
|
Raven Scott
|
c58671dc7d
|
first commit
|
2024-06-03 19:23:14 -04:00 |
|