Skip to content

Commit

Permalink
remove secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilMahana committed Oct 11, 2022
1 parent 46bf242 commit c0c59ec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/node_modules
.env
8 changes: 3 additions & 5 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ const bot = new Discord.Client();
const axios = require('axios')
const { MessageEmbed} = require("discord.js");


require("dotenv").config();
const fetch = require("node-fetch");
const dotenv = require("dotenv");
const ms = require("ms");
const googleIt = require('google-it')
const smartestchatbot = require('smartestchatbot')
Expand Down Expand Up @@ -41,7 +40,6 @@ const format = require(`humanize-duration`);
const map = new Discord.Collection();

const fs = require ("fs");
dotenv.config();

const config = require("./auth.json")
const {prefix} = require("./auth.json")
Expand Down Expand Up @@ -917,7 +915,7 @@ let member = msg.mentions.users.first();
.setFooter('Enjoy!!');
axios
.get(
`https://api.openweathermap.org/data/2.5/weather?q=${args}&units=metric&appid=${config.apitoken}`
`https://api.openweathermap.org/data/2.5/weather?q=${args}&units=metric&appid=${process.env.API_TOKEN}`
)
.then(response => {
let apiData = response;
Expand Down Expand Up @@ -1220,4 +1218,4 @@ else if (command === "fakevirus" || command === "fv") {



bot.login(config.token);
bot.login(process.env.TOKEN);
6 changes: 1 addition & 5 deletions auth.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@

{
"prefix": "+",
"token": "OTUyMTM5MDcxMjMxMjM0MTI0.YixqnA.zirUf2hFC5UjHAsOJ3Id240pgvE",
"apitoken": "faf721dfecf648002d7fd3a290f832d0"


"prefix": "+"
}

0 comments on commit c0c59ec

Please sign in to comment.