Hello, I wrote a bot in bash. Is it normal

for it not to work stably?😁

43 ответов

90 просмотров

bash? try assembly

absolutely lmao. I wanna see source tho

Dude can i see ur code please

Maybe bash is not the best language to write a bot in :D

Яico X
Lol

Assembly? What's that, I write machine code directly

Daniel
Assembly? What's that, I write machine code direct...

After seeing a bot written in brainfuck nor assembly or bash can surprise me

s0m31 🇷🇺
After seeing a bot written in brainfuck nor assemb...

Is it forbidden to send the name of the bot I wrote in bash here?

🇹🇷⃟mσrєlαnd⸶༂↦ 𝗟𝘂𝗰𝗶
Is it forbidden to send the name of the bot I wrot...

Welp better just don't. I would like to see a source more than the bot itself

Daniel
Assembly? What's that, I write machine code direct...

Machine code? Pathetic. I wire the logic in hardware.

s0m31 🇷🇺
After seeing a bot written in brainfuck nor assemb...

For brainfuck you can make a transpiler very easily

Luca Patera
sauce?

https://github.com/yilbegan/telefuck

🇹🇷⃟mσrєlαnd⸶༂↦ 𝗟𝘂𝗰𝗶
Is it forbidden to send the name of the bot I wrot...

People have shared codes linking to their bots in the past in the chat https://t.me/BotTalk/646504

s0m31 🇷🇺
https://github.com/yilbegan/telefuck

And I love "fix typo" commit: https://github.com/yilbegan/telefuck/commit/ca21468e9064edab86f1f1810416ef6ec6fd596a

go tell that to yilbegan

s0m31 🇷🇺
go tell that to yilbegan

Does it capture stdout and makes requests using other tools?

Encrypted
Does it capture stdout and makes requests using ot...

Welp i took a quick look at its python interpreter and it doesn't seem so. Didn't get in details however

Encrypted
So custom intepreter?

Is there an official one?

s0m31 🇷🇺
Is there an official one?

I mean it probably has some out-of-standart features

🇹🇷⃟mσrєlαnd⸶༂↦ 𝗟𝘂𝗰𝗶
okay

Haha, I don't mind hastebin. It's just funny how you mentioned two times that it will be on github and used some other service

🇹🇷⃟mσrєlαnd⸶༂↦ 𝗟𝘂𝗰𝗶
okay

The code you posted won't work, because you always call "$API_URL/getUpdates". You always fetch the same updates and never mark the updates as "read". Also you only check one single update per /getUpdates call. This is very expensive and unnecessary. You should consider adding a loop inside the loop and process all updates in there

Яico X
The code you posted won't work, because you always...

I don't even know how to make an array in bash

https://github.com/ErdemXp/bash-chatgpt/

Яico X
The code you posted won't work, because you always...

If anyone still wants to look source code -> https://github.com/ErdemXp/bash-chatgpt/

..... I don't know much about Bash. This bot was just a test

🇹🇷⃟mσrєlαnd⸶༂↦ 𝗟𝘂𝗰𝗶
..... I don't know much about Bash. This bot was j...

You do a curl requests in plain bash to telegram and then use python one to get chatgpt answer

Похожие вопросы

Обсуждают сегодня

В чем прикол? Если поменять где-нибудь печать на %s - падает? import core.stdc.stdio; import core.stdc.stdlib; alias T = char; T* f() { int length = 3; auto p = cas...
Serg Gini
2
слушайте, ребят, немного не по теме вашего диалога. Пишу тулзу для обмена данными через UART с сжатием, она почти работает! но: Начало работы сервера Порт /dev/ttyUSB0 успешно...
quantumde1 Зубенко
4
Даже вот условно я, понимаю головой. Rust ну вот он язык который сейчас то что нужно, но вот его утомительная сложность в мелочах. От сингелтона, до инициализации типов и указ...
Vi
3
любопытно, а кто работал на низкоуровневых железках, а может и не только, вы считаете ассемблерными вызовы небезопасными, доверительными или условно безопасными?. Так-то на фо...
Constantin F.
2
ну, например, в ди оператор instanceof бывает эмулируют через cast, проверяя результат на null. Тогда имеем в какой-нить функции. class A {} class B : A {} B b = new B; if(au...
Constantin F.
4
server is started opened /dev/ttyUSB0 std.conv.ConvException@/usr/include/d/std/conv.d(2522): Unexpected end of input when converting from type string to type ulong --------...
quantumde1 Зубенко
1
Слушайте, я тут спеку васма смотрю и в целом все как устроено. Вопрос, а почему тяжело GC D подвести под память WASM? Есть какой то нюанс или тупо никто не занимался?
Vi
5
Я проснулся и готов опять затирать свой евангелизм. Никому не нужны сложности, нужна простота. Раст проще С++, по этому берут его, там где могут. Выйдет карбон и он будет про...
Vi
1
Кто то шарит, TS можно без зоопарка Node JS установить? Как раз будет повод поиграть с JS VM на Go. Я помню пару лет были такие вакансии, активно пиарили даже в го каналах...
Vi
1
> комьюнити я бы не судил по этому чату. Как мы видели по статам просмотров нескольких телеговских постов, то в чате их набивается 30-40 или даже выше, когда как общаются акти...
Constantin F.
4
Карта сайта