Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discord economy bot english #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,17 @@ You need to rename the `config.sample.json` file to `config.json` and edit it be
{
"token":"your discord bot secret token",
"prefix":"!",
"game":"made by Androz",
"game":"made by Androz, Transalation by ItzMeGamer",
"embed":{
"color":"#ff5b5b",
"footer":"By Androz#2091"
"footer":"By Androz#2091 , 𝙸𝚝𝚣𝙼𝚎𝙶𝚊𝚖𝚎𝚛𝚈𝚃𝙲𝚑𝚊𝚗𝚗𝚎𝚕#2262 | Open Source DiscordBot"
},
"administrators":[
"AdminID",
"AdminID"
]
}

```

In the token field, replace `your discord bot secret token` by your bot token.
Expand All @@ -52,3 +53,9 @@ The administrators field (the accounts that will be able to execute admin only c
To install the required node modules, simply type `npm install` and all dependencies will be installed!

Once all this is done, you can start the `main.js` file!
Start the `main.js` file by `node main.js`

## Credits

Coding by Androz
Transalation by ItzMeGamer
4 changes: 2 additions & 2 deletions config.sample.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"token":"your discord bot secret token",
"prefix":"!",
"game":"made by Androz",
"game":"made by Androz, Transalation by ItzMeGamer",
"embed":{
"color":"#ff5b5b",
"footer":"By Androz#2091 | Open Source DiscordBot"
"footer":"By Androz#2091 , 𝙸𝚝𝚣𝙼𝚎𝙶𝚊𝚖𝚎𝚛𝚈𝚃𝙲𝚑𝚊𝚗𝚗𝚎𝚕#2262 | Open Source DiscordBot"
},
"administrators":[
"AdminID",
Expand Down
16 changes: 8 additions & 8 deletions functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {
rep:0,
level:0,
xp:0,
desc:"unknow",
desc:"Bio: Unknown",
premium:"false",
registeredAt:require("./functions.js").printDate(new Date(Date.now()))
});
Expand All @@ -46,7 +46,7 @@ module.exports = {
// Init counter
let pos = 0;
// Init new array
let narray = [];
let array = [];
array.forEach((element) => {
bot.fetchUser(element.id).then((user) => {
// Update counter variable
Expand Down Expand Up @@ -130,10 +130,10 @@ module.exports = {
printDate(pdate){
// An array of the months
let monthNames = [
"janvier", "février", "mars",
"avril", "mai", "juin", "juillet",
"août", "septembre", "octobre",
"novembre", "décembre"
"January", "Feburary", "March",
"April", "May", "June", "July",
"August", "September", "October",
"November", "December"
];

// Get date informations
Expand All @@ -144,7 +144,7 @@ module.exports = {
minute = pdate.getMinutes();

// Return a string of the date
return day+" "+monthNames[monthIndex]+" "+year+" à "+hour+"h"+minute;
return day+" "+monthNames[monthIndex]+" "+year+" Y "+hour+" H "+minute;
},

/**
Expand All @@ -166,7 +166,7 @@ module.exports = {
h += d * 24;

// Return a string
return h+" heure(s) "+m+" minute(s) "+s+" seconde(s)";
return h+" hour(s) "+m+" minute(s) "+s+" second(s)";
},

/**
Expand Down
Loading