Discord Bot

About

Discord Bot has TempleOS Cloud bindings which allows to execute HolyC code.

In order to use the bot either install it to the discord server and send command to a channel, or send private message.

Commands

Commands could be run either in Text or Video mode. Text mode is similar to unix pipe execution. Video mode records screen.

Text Output

Code execution could be triggered with exclamation mark commands:

!hc or !holyc, e.g.:

!hc GodWord;
!holyc TaskRep;

You may use markdown code blocks with commands:

!hc ```
I64 i;
for (i = 0; i < 0x10; i++) {
  "%x ", i;
}
```

Also the bot would capture HolyC code blocks, even without command specification:

Would you like the bot?

```holyc
switch (GodBits(24)%8) {
  case : "Yes"; break;
  case : "No"; break;
  case 2...4: "Probably"; break;
  case 5...7: "Not likely"; break;
}
```

Graphical Output

Capture result screenshot with !hcsc command:

!hcsc ```
"Hello, World!\n";
```

Record video output using !hcdc command:

!hcdc ```
U8 *w = "Hello, World!\n";
for (; *w != 0; w++) {
  PutChars(*w);
  Sleep(400);
}
```
Copyright © 2023 - 2025 Serhii Zasenko. All rights reserved