# koishi-plugin-bang

> bang (!) command implementation in Koishi

Latest version **1.0.0** (published 2023-05-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install koishi-plugin-bang
pnpm add koishi-plugin-bang
yarn add koishi-plugin-bang
bun add koishi-plugin-bang
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2023-05-27 |
| First published | 2023-05-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Maiko Tan |
| Maintainers | maiko_tan |
| Keywords | bot, qqbot, chatbot, plugin, koishi, koishijs, linux-command, bang |

## Links

- npm: https://www.npmjs.com/package/koishi-plugin-bang
- Repository: https://github.com/AwesomeHamster/koishi-plugin-bang
- Issues: https://github.com/AwesomeHamster/koishi-plugin-bang/issues
- npm.io page: https://npm.io/package/koishi-plugin-bang

## Recent versions

- 1.0.0 (latest) — 2023-05-27

## README

# koishi-plugin-bang

bang (!) command implementation in Koishi

## Usage

Just like the bang command in bash, you can use `!` to introduce a command that you have previously issued.


### `!!` - Repeat the last command

```bash
$ echo hello
hello
$ !!
hello
```

### `!n` - Repeat the nth command

```bash
$ echo hello
hello
$ echo world
world
$ !1
hello
```

### `!-n` - Repeat the command n steps back

```bash
$ echo hello
hello
$ echo world
world
$ !-1
world
```

### `!string` - Repeat the last command starting with `string`

```bash
$ echo hello
hello
$ echo world
world
$ !e
world
```

### `!?string` - Repeat the last command containing `string`

```bash
$ echo hello
hello
$ echo world
world
$ !?l
world
```

### `:p` suffix - Print the command instead of executing it

```bash
$ echo hello
hello
$ !!:p
echo hello
```


## License

This project is licensed under the [MIT License](LICENSE).

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