[bot] break out RPC and shared packages for bot service breakout

This commit is contained in:
41666 2019-04-04 11:13:34 -05:00
parent 544ae65c58
commit 50b5e334a3
No known key found for this signature in database
GPG key ID: BC51D07640DC10AF
31 changed files with 233 additions and 111 deletions

View file

@ -42,6 +42,7 @@ class RoleypolyApp extends App {
ctx.user = user
} catch (e) {
if (e.code === 403) {
console.error('user not found')
ctx.user = null
} else {
console.error(e)

View file

@ -3,7 +3,7 @@ import * as React from 'react'
import Head from 'next/head'
import type { PageProps } from '../../types'
import SocialCards from '../../components/social-cards'
import redirect from '../../lib/redirect'
import redirect from '../../util/redirect'
import { connect } from 'react-redux'
import { fetchServerIfNeed, getCurrentServerState, type ServerState } from '../../stores/currentServer'
import { renderRoles, getCategoryViewState, toggleRole, type ViewState } from '../../stores/roles'

View file

@ -4,7 +4,7 @@ import styled from 'styled-components'
import { md } from '../../kit/media'
import DiscordButton from '../../components/discord-button'
import RPC from '../../config/rpc'
import redirect from '../../lib/redirect'
import redirect from '../../util/redirect'
import dynamic from 'next/dynamic'
import type { PageProps } from '../../types'
import type { ServerSlug } from '@roleypoly/types'

View file

@ -1,5 +1,5 @@
import * as React from 'react'
import redirect from '../lib/redirect'
import redirect from '../util/redirect'
// import Link from 'next/link'
// import Head from '../components/head'
// import Nav from '../components/nav'