I hereby claim:
- I am kurozeropb on github.
- I am kurozero (https://keybase.io/kurozero) on keybase.
- I have a public key whose fingerprint is 113B 2D92 B201 90AC 56E6 8666 389C 3D40 9148 70CC
To claim this, I am signing this object:
const converter = require('json-2-csv'); | |
const fs = require('fs'); | |
const points = require('./points-new.json'); | |
converter.json2csv(points, (err, data) => { | |
fs.writeFile(`${__dirname}/points.csv`, data, 'utf8', (err) => { | |
if (err) { | |
console.log(`Some error occured - file either not saved or corrupted file saved.\n${e}`); | |
} else{ |
const fs = require("fs"); | |
const json = require("./points.json"); | |
let array = []; | |
Object.keys(json).map((key, index) => { | |
let temp = { | |
"userID": key, | |
"level": json[key].level, | |
"points": json[key].points, |
@commands.guild_only() | |
@commands.has_permissions(manage_guild=True) | |
@commands.command(name='modlog') | |
async def set_modlog(self, ctx, channel: discord.TextChannel): | |
"""Set the modlog channel""" | |
with open('db/guild_settings.yaml', 'r+') as yaml_file: | |
yaml_data = yaml.load(yaml_file) | |
keys = list(yaml_data.keys()) | |
if f'{ctx.guild.id}' in keys: | |
if yaml_data[f'{ctx.guild.id}']['modlog'] == str(channel.id): |
I hereby claim:
To claim this, I am signing this object: