Commit Graph

21 Commits

Author SHA1 Message Date
MrMasrozYTLIVE
b3ccda32ea did lots of work on bot package 2024-06-14 16:43:17 +03:00
Raven Scott
bd885bb591 Fix peerName in Message received 2024-06-14 04:46:19 -04:00
Raven Scott
116b23d70f Move back to global peer count 2024-06-13 20:47:45 -04:00
Raven Scott
b50bd0bbab Room Counts done better 2024-06-13 20:02:01 -04:00
Raven Scott
052fbecc20 Remove not needed join line 2024-06-12 00:08:34 -04: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
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
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
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
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
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