Skip to content

Commit 3ee59af

Browse files
committed
Commit first rebranding changes
1 parent 3dc6707 commit 3ee59af

File tree

11 files changed

+68
-68
lines changed

11 files changed

+68
-68
lines changed

Diff for: README.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,35 @@
1-
# dbots website
1+
# dbothook website
22

3-
> The website housing documentation for dbots
3+
> The website housing documentation for dbothook
44
55
## Website source
66

77
This website is forked from https://github.com/discordjs/website
8+
This website is cloned from https://githbu.com/dbots-pkg/dbots.github.io
89

910
## Project setup
1011
```
11-
yarn install
12+
npm install
1213
```
1314

1415
### Compiles and hot-reloads for development
1516
```
16-
yarn run serve
17+
npm run serve
1718
```
1819

1920
### Compiles and minifies for production
2021
```
21-
yarn run build
22+
npm run build
2223
```
2324

2425
### Run your tests
2526
```
26-
yarn run test
27+
npm run test
2728
```
2829

2930
### Lints and fixes files
3031
```
31-
yarn run lint
32+
npm run lint
3233
```
3334

3435
### Customize configuration

Diff for: package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "dbots-website",
3-
"version": "2.3.0",
2+
"name": "dbothook-website",
3+
"version": "1.0.0",
44
"private": true,
5-
"description": "The website housing documentation for dbots",
5+
"description": "The website housing documentation for dbothook",
66
"author": "Federico Grandi <[email protected]>",
77
"scripts": {
88
"serve": "vue-cli-service serve",

Diff for: public/CNAME

-1
This file was deleted.

Diff for: public/index.html

+10-10
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22
<html lang="en">
33

44
<head>
5-
<title>dbots</title>
5+
<title>dbothook</title>
66
<meta charset="utf-8" />
77
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
88
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
99

1010
<!-- Twitter & OpenGraph data -->
11-
<meta name="twitter:title" content="dbots.js">
12-
<meta property="og:site_name" content="dbots.js">
13-
<meta property="og:url" content="https://dbots.js.org/" />
14-
<meta property="og:title" content="dbots.js" />
11+
<meta name="twitter:title" content="dbothook.js">
12+
<meta property="og:site_name" content="dbothook.js">
13+
<meta property="og:url" content="https://dbothook.js.org/" />
14+
<meta property="og:title" content="dbothook.js" />
1515
<meta property="og:description" content="A stats poster and API wrapper for all botlists." />
1616

1717
<!-- Image meta -->
18-
<meta name="twitter:image" content="https://dbots.js.org/static/cover.png">
18+
<meta name="twitter:image" content="https://dbothook.js.org/static/cover.png">
1919
<meta name="twitter:card" content="summary_large_image">
20-
<meta property="og:image" content="https://dbots.js.org/static/cover.png">
21-
<meta property="og:image:secure" content="https://dbots.js.org/static/cover.png">
20+
<meta property="og:image" content="https://dbothook.js.org/static/cover.png">
21+
<meta property="og:image:secure" content="https://dbothook.js.org/static/cover.png">
2222
<meta property="og:image:type" content="image/png">
23-
<meta property="og:image:alt" content="dbots.js Cover">
23+
<meta property="og:image:alt" content="dbothook.js Cover">
2424

2525

2626
<!-- Other meta data -->
@@ -39,7 +39,7 @@
3939

4040
<body>
4141
<noscript>
42-
<strong>Sorry, but the dbots website doesn't work properly without JavaScript enabled. Please enable it to
42+
<strong>Sorry, but the dbothook website doesn't work properly without JavaScript enabled. Please enable it to
4343
continue.</strong>
4444
</noscript>
4545
<div id="app"></div>

Diff for: public/manifest.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "dbots.js Documentation",
3-
"short_name": "dbots.js Docs",
2+
"name": "dbothook Documentation",
3+
"short_name": "dbothook Docs",
44
"theme_color": "#fc7b03",
55
"background_color": "#2f3236",
66
"display": "browser",

Diff for: src/components/AppFooter.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
<footer>
33
<container>
44
<strong>
5-
<router-link to="/">dbots</router-link>
5+
<router-link to="/">dbothook</router-link>
66
</strong>
77
<p>The universal count poster</p>
88
<a class="icon-link" href="https://github.com/dbots-pkg">
99
<i class="fab fa-github"></i>
1010
</a>
11-
<a class="icon-link" href="https://npmjs.org/package/dbots">
11+
<a class="icon-link" href="https://npmjs.org/package/dbothook">
1212
<i class="fab fa-npm"></i>
1313
</a>
14-
<a class="icon-link" href="https://yarn.pm/dbots">
14+
<a class="icon-link" href="https://yarn.pm/dbothook">
1515
<i class="fab fa-yarn"></i>
1616
</a>
17-
<a class="icon-link" href="https://www.jsdelivr.com/package/npm/dbots">
17+
<a class="icon-link" href="https://www.jsdelivr.com/package/npm/dbothook">
1818
<i class="fa fa-server"></i>
1919
</a>
2020
<stats/>

Diff for: src/components/AppNavbar.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<template>
22
<header>
33
<container>
4-
<router-link to="/">dbots.js</router-link>
4+
<router-link to="/">dbothook.js</router-link>
55

66
<nav>
77
<router-link to="/docs">Documentation</router-link>
88
<a :href="`https://github.com/${repository}`">GitHub</a>
99
<nav class="hidden-nav" :class="visible ? 'open' : 'closed'">
10-
<a href="https://github.com/dbots-pkg/dbots-pkg.github.io">Website Source</a>
10+
<a href="https://github.com/dbots-pkg/dbothook-website">Website Source</a>
1111
<router-link to="/services">Services</router-link>
1212
</nav>
1313
<a class="nav-open-btn" @click="toggle">

Diff for: src/components/Logo.vue

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<svg class="dbots-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 434.63 400">
2+
<svg class="dbothook-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 434.63 400">
33
<g>
44
<g class="text">
55
<path
@@ -47,7 +47,7 @@ export default {
4747
@import "../styles/theming";
4848
@import "../styles/animation";
4949
50-
.dbots-logo {
50+
.dbothook-logo {
5151
overflow: visible !important;
5252
width: 100%;
5353
max-width: 400px;
@@ -80,7 +80,6 @@ export default {
8080
}
8181
}
8282
83-
8483
@include keyframes(logoFadeInUp) {
8584
from {
8685
opacity: 0;

Diff for: src/components/Stats.vue

+17-17
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,39 @@
44
<h3>{{ downloads }}</h3>
55
<span>Downloads</span>
66
</div>
7-
<a href="https://bundlephobia.com/result?p=dbots" class="stat-card">
7+
<a href="https://bundlephobia.com/result?p=dbothook" class="stat-card">
88
<h3>{{ size }}</h3>
99
<span>Kilobytes</span>
1010
</a>
11-
<a href="https://github.com/dbots-pkg/dbots.js/stargazers" class="stat-card">
11+
<a href="https://github.com/dbots-pkg/dbothook.js/stargazers" class="stat-card">
1212
<h3>{{ stars }}</h3>
1313
<span>Stars</span>
1414
</a>
15-
<a href="https://github.com/dbots-pkg/dbots.js/graphs/contributors" class="stat-card">
15+
<a href="https://github.com/dbots-pkg/dbothook.js/graphs/contributors" class="stat-card">
1616
<h3>{{ contributors }}</h3>
1717
<span>Contributors</span>
1818
</a>
19-
<a v-if="usedBy" href="https://github.com/dbots-pkg/dbots.js/network/dependents?package_id=UGFja2FnZS0zNzA1MzQ1MA%3D%3D" class="stat-card">
19+
<a v-if="usedBy" href="https://github.com/dbots-pkg/dbothook.js/network/dependents?package_id=UGFja2FnZS0zNzA1MzQ1MA%3D%3D" class="stat-card">
2020
<h3>{{ usedBy }}</h3>
21-
<span>GitHub repos using dbots.js</span>
21+
<span>GitHub repos using dbothook.js</span>
2222
</a>
23-
<a href="https://github.com/dbots-pkg/dbots.js/commits/master" class="stat-card">
23+
<a href="https://github.com/dbots-pkg/dbothook.js/commits/master" class="stat-card">
2424
<h3>{{ commits }}</h3>
2525
<span>Commits to master</span>
2626
</a>
27-
<a v-if="openIssues" href="https://github.com/dbots-pkg/dbots.js/issues" class="stat-card">
27+
<a v-if="openIssues" href="https://github.com/dbots-pkg/dbothook.js/issues" class="stat-card">
2828
<h3>{{ openIssues }}</h3>
2929
<span>Open Issues</span>
3030
</a>
31-
<a href="https://github.com/dbots-pkg/dbots.js/watchers" class="stat-card">
31+
<a href="https://github.com/dbots-pkg/dbothook.js/watchers" class="stat-card">
3232
<h3>{{ watchers }}</h3>
3333
<span>Watchers</span>
3434
</a>
35-
<a v-if="forks" href="https://github.com/dbots-pkg/dbots.js/network/members" class="stat-card">
35+
<a v-if="forks" href="https://github.com/dbots-pkg/dbothook.js/network/members" class="stat-card">
3636
<h3>{{ forks }}</h3>
3737
<span>Forks</span>
3838
</a>
39-
<a href="https://www.npmjs.com/package/dbots?activeTab=versions" class="stat-card">
39+
<a href="https://www.npmjs.com/package/dbothook?activeTab=versions" class="stat-card">
4040
<h3>{{ versions }}</h3>
4141
<span>Versions Published</span>
4242
</a>
@@ -94,23 +94,23 @@ export default {
9494
usedBy,
9595
] = await Promise.all([
9696
fetch(
97-
'https://api.npmjs.org/downloads/range/2013-08-21:2100-08-21/dbots',
97+
'https://api.npmjs.org/downloads/range/2013-08-21:2100-08-21/dbothook',
9898
).then(json, noop),
99-
fetch('https://api.github.com/repos/dbots-pkg/dbots.js').then(
99+
fetch('https://api.github.com/repos/dbots-pkg/dbothook.js').then(
100100
json,
101101
noop,
102102
),
103103
fetch(
104-
'https://api.github.com/repos/dbots-pkg/dbots.js/stats/contributors',
104+
'https://api.github.com/repos/dbots-pkg/dbothook.js/stats/contributors',
105105
).then(json, noop),
106106
fetch(
107-
'https://api.github.com/repos/dbots-pkg/dbots.js/contributors',
107+
'https://api.github.com/repos/dbots-pkg/dbothook.js/contributors',
108108
).then(json, noop),
109-
fetch('https://api.npms.io/v2/package/dbots').then(json, noop),
109+
fetch('https://api.npms.io/v2/package/dbothook').then(json, noop),
110110
fetch(
111-
'https://bundlephobia.com/api/size?package=dbots&record=true',
111+
'https://bundlephobia.com/api/size?package=dbothook&record=true',
112112
).then(json, noop),
113-
fetch('https://api.snaz.in/v2/github/used-by/dbots-pkg/dbots.js').then(json, noop),
113+
fetch('https://api.snaz.in/v2/github/used-by/dbots-pkg/dbothook.js').then(json, noop),
114114
]);
115115
116116
if (downloads) {

Diff for: src/components/pages/Home.vue

+18-17
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<br>
77
<br>
88
<div class="cli-command">
9-
<code>{{ yarn ? 'yarn add' : 'npm i' }} {{ showDevCommand ? (yarn ? `ssh://github.com/${repo}#master` : `${repo}#master`) : 'dbots' }}</code>
9+
<code>{{ yarn ? 'yarn add' : 'npm i' }} {{ showDevCommand ? (yarn ? `ssh://github.com/${repo}#master` : `${repo}#master`) : 'dbothook' }}</code>
1010
<em v-on:click="copy" class="fa fa-clipboard"></em>
1111
</div>
1212
<div class="below-command">
@@ -19,27 +19,29 @@
1919
<section id="info">
2020
<div class="info-item">
2121
<h2>About</h2>
22-
<p>dbots.js is a package that allows you to automatically post your bot stats to multiple bot lists.</p>
23-
<p>The module also provides some interfaces for other requests to the list APIs, so that everything can be done with the same package, instead of having to make the requests youself or dealing with multiple packages.</p>
22+
<p><code>dbothook</code> helps Discord bot developers recieve webhook events from multiple bot lists.</p>
23+
<p>You can create an express application straight from the hook or integrate endpoints into an existing application.</p>
2424
</div>
2525

2626
<div class="info-item">
2727
<h2>Example</h2>
28-
<pre><code class="javascript" v-hljs>const Discord = require('discord.js');
29-
const client = new Discord.Client();
30-
const dbots = require('dbots');
31-
const poster = new dbots.Poster({
32-
client,
33-
apiKeys: {
34-
discordbotsgg: '…',
28+
<pre><code class="javascript" v-hljs>const DBotHook = require('dbothook');
29+
const hook = new DBotHook({
30+
authSecrets: {
3531
topgg: '…',
36-
lsterminalink: '…',
37-
carbon: '…'
38-
},
39-
clientLibrary: 'discord.js'
32+
discordboats: '…',
33+
discordbotlist: '…',
34+
botsfordiscord: '…'
35+
}
4036
});
4137

42-
poster.startInterval(); // starts an interval thats posts to all services every 30 minutes</code></pre>
38+
hook.listen(5478);
39+
hook.on('called', event => {
40+
// Give them some perks...
41+
});
42+
43+
// This should open endpoints for each bot list
44+
// For example, you can set your webhook URL to "https://some.site/topgg" and start collecting requests.</code></pre>
4345
</div>
4446

4547
<div class="info-item">
@@ -221,7 +223,7 @@ export default {
221223
margin-left: 15px;
222224
223225
&:before {
224-
content: '/';
226+
content: "/";
225227
display: inline-block;
226228
text-decoration: none;
227229
pointer-events: none;
@@ -295,7 +297,6 @@ export default {
295297
}
296298
}
297299
298-
299300
@include keyframes(cliFadeInUp) {
300301
from {
301302
opacity: 0;

Diff for: src/data/MainSource.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ const branchBlacklist = new Set(['docs', 'webpack', 'v8']);
55
export default new DocsSource({
66
id: 'main',
77
name: 'Main library',
8-
global: 'dbots',
9-
repo: 'dbots-pkg/dbots.js',
8+
global: 'dbothook',
9+
repo: 'dbots-pkg/dbothook.js',
1010
defaultTag: 'latest',
1111
branchFilter: branch =>
1212
!branchBlacklist.has(branch) && !branch.startsWith('dependabot/'),

0 commit comments

Comments
 (0)