# presence-timer

> Make discord.js bots copy the presence of another random user.

Latest version **1.0.1** (published 2018-04-12) · GPL-3.0+ license · 0 weekly downloads

## Install

```sh
npm install presence-timer
pnpm add presence-timer
yarn add presence-timer
bun add presence-timer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-04-12 |
| First published | 2018-04-12 |
| Weekly downloads | 0 |
| License | GPL-3.0+ |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | JD F |
| Maintainers | triforcey |
| Keywords | discord, discord.js, bot |

## Links

- npm: https://www.npmjs.com/package/presence-timer
- Repository: https://github.com/Triforcey/presence-timer
- Homepage: https://github.com/Triforcey/presence-timer#readme
- Issues: https://github.com/Triforcey/presence-timer/issues
- npm.io page: https://npm.io/package/presence-timer

## Recent versions

- 1.0.1 (latest) — 2018-04-12
- 1.0.0 — 2018-04-12

## README

[discord.js]: https://www.npmjs.com/package/discord.js

# presence-timer

## Introduction

presence-timer is an npm module that allows a [discord.js] bot to take on the presence of a random user the bot is aware of. It will only copy the presence of users listed as playing games.

This often brings new funny presences to your bot and is good for a quick laugh. Useful when you don't know what to put as your bot's presence.

## Installation

Just run `npm install --save presence-timer` inside your Node project.

## Usage

```js
var discord = require('discord.js');
var client = new discord.Client();
var presenceTimer = new require('presence-timer').Timer(client);
client.on('ready', function () {
	// update presence every 5 to 10 minutes
	presenceTimer.startTimer(300000, 600000);
	console.log('Bot ready! Logged in as "' + client.user.tag + '".');
});
client.login('token');
```

Stop the timer:

```js
presenceTimer.stopTimer();
```

---
_Source: https://npm.io/package/presence-timer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
