1CJHHcQAbDtTMfvjX4FtF6ie5FG2t5N5BN
0x4c9463589bd20a1baad927a1b7cea685c2e6ba10
UQCoC9qEDQa2t6GR3YA61BzNAyY3P6fLecndStKQb4eRxd7_
24/04/07 00:56:17 | INFO | numexpr.utils | _init_num_threads | 161 : NumExpr defaulting to 4 threads. | |
24/04/07 00:56:19 | SUCCESS | menfess.database | db_connect | 80 : Database connected. | |
24/04/07 00:56:19 | SUCCESS | menfess.database | db_connect | 83 : Tables created. | |
24/04/07 00:56:21 | INFO | menfess.bot | start | 563 : Starting Bot Client... | |
24/04/07 00:56:22 | INFO | menfess.bot | start | 578 : Bot Client details: | |
ID: 6243829127 | |
First Name: RANDOM MENFESS | |
Username: randomenfess_bot | |
24/04/07 00:56:22 | INFO | menfess.bot | start | 588 : Var.MENFESS_ID detected! | |
Title: RANDOM MENFESS 💭 |
Before execute you must install curl
.
module.exports = (ctx, next) => { | |
switch (ctx.updateType) { | |
case 'message': | |
if (new Date().getTime() / 1000 - ctx.message.date < 5 * 60) { | |
next(); | |
} else { | |
console.log(`Ignoring messages updateType: 'message' from ${ctx.chat.id}`); | |
} | |
break; | |
case 'callback_query': |
const {Context} = require('telegraf'); | |
class Aliases extends Context { | |
constructor(update, telegram, options) { | |
super(update, telegram, options); | |
this.t = telegram; | |
} | |
sendAction(...args) { | |
return super.replyWithChatAction(...args); |
If you are use Unix/Linux create a bash script with a loop. In this case I want to backup the extensions list and install again:
First create a list of the extensions:
$ code --list-extensions > extensions.txt
Create a bash script for example with the name vscode-extension-install.sh
and input the following code:
Aliases ~/.bashrc
or ~/.zshrc
:
alias pmr='sudo reflector -c "Indonesia" -c "Singapore" -c "US" -c "China" --score 100 --latest 25 --sort rate --save /etc/pacman.d/mirrorlist --verbose'
alias update-mirror='pmr && cat /etc/pacman.d/mirrorlist > mirrorlist && gist -u 3ac7c21617513627a906d314f63a7eca mirrorlist'
Just update /etc/pacman.d/mirrorlist
:
$ pmr
Update and push to gist: