Skip to content

Instantly share code, notes, and snippets.

@wilik16
wilik16 / bot.js
Created Feb 1, 2021
Giveaway bot sample for twitch
View bot.js
const tmi = require('tmi.js');
// Define configuration options
const opts = {
identity: {
username: <BOT_USERNAME>,
password: <OAUTH_TOKEN>
},
channels: [
<CHANNEL_NAME>
@wilik16
wilik16 / build.gradle
Last active Jan 7, 2021
Archive/Copy debug or release APK / AAB (Android App Bundle) file and/or mapping.txt to a versioned folder
View build.gradle
android {
applicationVariants.all { variant ->
variant.outputs.all {
def fileName = "app"
switch (variant.buildType.name) {
case "debug":
fileName = "${appNameDebug}-${variant.versionCode}"
break
case "release":
fileName = "${appNameRelease}-${variant.versionCode}"