Hello guys How can make a code just work for

x seconds? And after it that (command) dom t response to me

16 ответов

16 просмотров

Second process who will sleep. When the time runs out, just turn off the program 🤔

Put a timer in the command listener and start ingnoring it when its done

Enigma- Автор вопроса
Baki
Put a timer in the command listener and start ingn...

Can you clarify this answer by giving me more information? I'm talking about a many of users where do I save time for each and how do I have to call it after the specified time like 20 days?

Enigma
Can you clarify this answer by giving me more info...

You should just know programming language including async/multithreading. Do you know this?

Enigma- Автор вопроса
Enigma
Oh no😔

so, you ask to write code instead of you? )

Enigma- Автор вопроса
Sery
so, you ask to write code instead of you? )

I'm still learning, thank you😄

Sery
so, you ask to write code instead of you? )

Surely you can write the project for me? 80-20 split in profit (with 80% for me for the value of the idea) once it goes to the moon 🙃

Enigma
Php

Dont know php so cant help in details, but you'll need a database where to save whitelisted users for that specific command with ending time, if end time is reached or surpassed delete the user

Enigma- Автор вопроса
Baki
Dont know php so cant help in details, but you'll ...

Seems about right yeah. If rate-limiting is the requirement, an ACL with the user ID and time of last command execution could be compared against the current time, user ID and timeout value on the next request.

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

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

А можно не обсуждать тут V?
Darkanronpa Goodbye Despair
18
Вот зачем писать о том, чего ты не знаешь? Стохастический это и есть вероятностный. И в этом и проблема, что один и тот алгоритм на одних и тех же данных выдает разный результ...
Aleksandr Druzhinin
37
Какая бы группа загнулась? Этот канал о Ди. Хотите поговорить о го/зиге/расте - добро пожаловать на каналы этих языков. Тут про Ди не говорят практически. Загнулась бы группа ...
Aleksandr Druzhinin
10
Кстате вопрос. Насколько я помню, был пост. Что в D nogc имеет накладные расходы. При работе с GC. Правда, нет? Разобраться толком времени не хватило.
Vi
3
Уолтер в коммунити zig-а суету наводит: https://news.ycombinator.com/item?id=41015588 С одной стороны, конешн, пиарится, с другой стороны, коркоманде и тому же Kelley, который...
Constantin F.
26
Warning Failed to apply the selected architecture x86_64-pc-windows-msvc. Got ["x86"]. Error Unsupported architecture: x86_64-pc-windows-msvc кто-нибудь знает, что с ldc2? вот...
quantumde1 Зубенко
3
@wintttr gdc, ldc2, dmd?
quantumde1 Зубенко
6
Этот V кто делает?
☭Тупо Лучше Император
3
Я кстате только в играх пока ,действительно вижу проблему от GC. А у вас какие задачи раз GC не нужен?
Vi
2
появился нормальный вывод зависимостей файла в стиле makefile?
Макс Воробьев
4
Карта сайта