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

for it not to work stably?😁

43 ответов

74 просмотра

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

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

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

Эх кто-то пришел и весь праздник испортил :( You need complex FBX scene importing setup to change things on import? good luck with that. You need navigation and pathfinding? g...
Serg Gini
5
на D можно построить абсолютно разный архитект, как объектный, так и нет, оч широкий простор для принятия решений. Однако проблема в том, что большинство книг об айтишной архи...
Constantin_FV
1
ну кстати в ноду 22 завезли движок 12.4 с WasmGC. А как у нас дела с wasm, мб в дискорде что-то кто-то писал-отвечал? Из BetterC, конечно, тоже можно выжать что-нибудь, но хот...
Constantin_FV
1
День добрый. Стандартная библиотека phobos (std.array) ссылается на внешнюю фунцию _d_newarrayUTrace и при сборке с ключом profile-gc эта ссылка остаётся неопределённой. Никак...
slacker linuxoid
5
а у нас кто-нибудь разбирается в матлаб? Накопал статью по замощению Фодерберга, о нём вообще мало инфы в сети. Но там матлабовский код, который нужно через песочницу по сути ...
Constantin_FV
1
а что на D можно делать под 3й Godot ?
Dmitry Ponyatov
3
ну эт я в вове такой, а тут я... на расте надо писать, на д куча проблем, годот тоже не лапочка. сидишь в афиге, а я еще бросил курить... и думаешь, а почему Я? хд.
Vi
1
string xczhojoxueaflfhhygcc ="xczhojoxueaflfhhygcc"; long xczhojoxueaflfhhygcc_2 =1368962155; import std.conv: text; writeln(text(xczhojoxueaflfhhygcc, " ", xczhojoxueaflfhhyg...
Constantin_FV
6
Доброго времени суток. Сейчас я работаю над своей архитектурой Component / Systems. Если просто, это то что использовали до дробления на ECS. Потому что ECS это все таки нишев...
Vi
26
А кто-нибудь встречал в пакетах\графических движках генерацию мозаик, Пенроуз и т.п.? На гитхабе вижу около сотни репов, ток по Пенроузу + разбросаны сниппеты по сети, но мб г...
Constantin_FV
3
Карта сайта