switch to node-fetch

This commit is contained in:
Will Nelson
2018-06-08 20:01:22 -07:00
parent fc96cfbc00
commit 2239b05e13
7 changed files with 67 additions and 52 deletions

View File

@@ -5,7 +5,7 @@
<meta charset="utf-8" />
</head>
<body>
<script type="text/javascript" src="../webpack/discord.min.js"></script>
<script type="text/javascript" src="../webpack/discord.js"></script>
<script type="text/javascript">
(() => {
const client = window.client = new Discord.Client();
@@ -25,7 +25,7 @@
});
client.login(localStorage.token || window.token || prompt('token pls', 'abcdef123456'))
.then((token) => localStorage.token = token);
.then((token) => localStorage.token = token, console.log);
})();
</script>
</body>