text: class Event {
  	constructor(parent, client) {
  		this.parent = parent;
  		this.client = client;
  		this._state = {
  			options: {
  				route: '/services',
  			},
  			author: 'Rubens G Pirie <rubens.pirie@gmail.com> [436876982794452992]',
  			maintainers: [{
  				name: 'Rubens G Pirie',
  				email: 'rubens.pirie@gmail.com',
  				discord_id: '436876982794452992',
  			}],
  		};
  	}
  
  	async update(parent) {
  		return true;
  	}
  
  	async post(client, chain) {
  		return true;
  	}
  
  	async finally(client) {
  		return true;
  	}
  
  	async pre(client) {
  		return true;
  	}
  	async process(express, chain, req, res, next) {
  		if (req.query.service) {
  			const services = await this.client.DB.query('SELECT * FROM services WHERE name = ?', [req.query.service]);
  			if (services[0]) {
  				res.end(JSON.stringify({
  					success: true,
  					result : services[0],
  				}));
  			}
  			else {
  				res.end(JSON.stringify({
  					success: false,
  					error: `No event found matching ${req.query.event} under type DISCORD`,
  				}));
  			}
  		}
  		else {
  			const services = await this.client.DB.query('SELECT name, file_name, file_folder, enabled FROM services');
  			res.end(JSON.stringify({
  				success: true,
  				result : services,
  			}));
  		}
  	}
  }
  
  module.exports = {
  	Event,
  };
  