import { Listener } from '@sapphire/framework';
export class presenceUpdate extends Listener {
public constructor(context: Listener.LoaderContext, options: Listener.Options){
super(context, {
...options,
});
this.container.logger.info("User presence update listener loaded")
}
public run(){
fetch(`http://roundhouse.proxy.rlwy.net:59002/incrementMessageCounter`)
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
this.container.logger.info("User presence updated")
}
}
import { Listener } from '@sapphire/framework';
export class presenceUpdate extends Listener {
public constructor(context: Listener.LoaderContext, options: Listener.Options){
super(context, {
...options,
});
this.container.logger.info("User presence update listener loaded")
}
public run(){
fetch(`http://roundhouse.proxy.rlwy.net:59002/incrementMessageCounter`)
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
this.container.logger.info("User presence updated")
}
}