Termbot

A bot that provides a fully fledged terminal emulator inside a Discord chat message. This is the thread for https://github.com/polyzium/termbot, all feature requests go here.
17 Replies
polyzium
polyzium2y ago
@earth's god @earth's bird
Dumb Bird
Dumb Bird2y ago
👍
polyzium
polyzium16mo ago
Holy crap it actually works inside a forum thread $w\n can't delete messages though oh well @earth's bird I managed to fix reverse video after all of those months Will push a commit soon
TermBot
TermBot16mo ago
bot.go
commands.go
config.yaml
go.mod
go.sum
LICENSE
main.go
README.md
reverse_test.txt
terminal.go
bot.go
commands.go
config.yaml
go.mod
go.sum
LICENSE
main.go
README.md
reverse_test.txt
terminal.go
no reversecolorreverseback to normalno color
no reversecolorreverseback to normalno color
polyzium
polyzium16mo ago
Huh, well this is quite broken in exec exec never really does any kind of color handling
polyzium
polyzium16mo ago
No description
polyzium
polyzium16mo ago
No description
polyzium
polyzium16mo ago
Neofetch :)
No description
polyzium
polyzium16mo ago
I know, goofy ahh color palette. Gonna start working on the accounts system
anic17
anic1716mo ago
Nice let me know when you do some changes
polyzium
polyzium12mo ago
I just started working on them lmao I just realized I haven't done any kind of syncing mechanism for the bot No mutex no nothing
anic17
anic1712mo ago
What implications does this have
polyzium
polyzium11mo ago
Sometimes the screen does not update and I believe this is caused by concurrent access to a pointer Race conditions might occur This is why I need a mutex I did exactly that ^^
anic17
anic1711mo ago
And how did it go
polyzium
polyzium8mo ago
I guess it;s a bit better in terms of async handling @earth's god if you're still following... I moved the color code to be per-terminal instead of per-user, but the code needs to be refined, I probably wrote spaghetti here
polyzium
polyzium8mo ago
Diff, for those interested
polyzium
polyzium7mo ago
apply on top of origin/master ^^^ No longer relevant, it has been pushed to the repo