Skip to content

Commit

Permalink
fix: convert disgrow to use pure functions
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkaroid committed Jun 30, 2022
1 parent 1e98414 commit f8c9179
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/base.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Disgrow from "disgrow";
import c from "../src/config";
import { bot_id } from "../src/config";

export function getRandomColor() {
let letters = "0123456789ABCDEF";
Expand All @@ -11,7 +11,7 @@ export function getRandomColor() {
}

export async function getInfo() {
const bot = new Disgrow(c.bot_id);
const bot = new Disgrow(bot_id);
const info = await bot.myStats().catch(err => {
alert("Error: " + err);
});
Expand Down
4 changes: 2 additions & 2 deletions test/api.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const Disgrow = require("disgrow");
const c = require("../src/config");
const { bot_id } = require("../src/config");

const bot = new Disgrow(c.bot_id);
const bot = new Disgrow(bot_id);
bot.myStats().then((res) => { console.log("myStats", res); });
4 changes: 0 additions & 4 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
// addition starts here
const TerserPlugin = require("terser-webpack-plugin");
const isProd = process.env.NODE_ENV === "production";
// addition ends here

module.exports = {
// addition ends here
// and keep what was already here
configureWebpack: {
optimization: {
minimize: true,
Expand Down

0 comments on commit f8c9179

Please sign in to comment.