Eddy Otsutsuki
Eddy Otsutsuki
You can use [dotenv](https://npm.im/dotenv) and create an .env file in the root project. ``` Project/ +-- .env +-- package.json +-- main/ │ +-- background.js +-- renderer/ │ +-- pages/ │...
```bash # only for linux function samWizard () { local model=$1 local region=$2 local outputDir=${3:-$HOME/Downloads} checkupdate=$(samloader -m $model -r $region checkupdate) samloader -m $model -r $region download -DO $outputDir -v...
What I did to import them separately was to create a nodejs script where I created an array with the list of all the icons. And based on that list,...
You can use `require.context`, like this: ```javascript const icons = require.context('./node_modules/phosphor-vue/src/components', true, /\.vue$/i) icons.keys().map((icon) => { const component = icons(icon).default console.log(component.name) // Load components Vue.component(component.name, component) }) ```
You can just do this: ```javascript const launchOptions = { webhook: { // ... } } bot.launch(launchOptions) process.on('unhandledRejectionOrAnyOtherReasonThatKilledOurBot', (error) => { bot.launch(launchOptions) }) ``` You can also make use of...
Try ```javascript ctx.replyWithDocument({ source: 'video.mp4', filename: 'My Video.mp4' }) ``` ```javascript ctx.replyWithMediaGroup([ { type: 'video', media: { source: 'video.mp4', filename: 'My Video.mp4' } } ]) ```
You can use Telegram Bot API without using bot.launch bot.launch, bot.startPolling or bot.webhookCallback are just for handling the requests that are sent to the bot. The bot will be able...
You're using encodeURI wrong, plus you could simplify your code like this ```javascript bot.on('inline_query', async (ctx) => { const { data } = await axios.get(`https://shikimori.one/api/animes?search=${encodeURI(ctx.inlineQuery.query)}&limit=50&page=1&order=popularity`) const items = data.map((d) =>...
I have the same issue on LineageOS 17.1
> > > Using opengapps mini package for arm64 having same problem My phone only support ARM